View Source OnePiece.Commanded.Helpers (OnePiece.Commanded v0.10.0)
A Swiss Army Knife Helper Module.
Link to this section Summary
Functions
generate_uuid()
deprecated
Deprecated, it has the same behavior as OnePiece.Commanded.Id.new/0
.
Transforms the given source
map or struct into the target
struct.
Link to this section Functions
This function is deprecated. Use `OnePiece.Commanded.Id.new/0` instead..
@spec generate_uuid() :: String.t()
Deprecated, it has the same behavior as OnePiece.Commanded.Id.new/0
.
@spec struct_from(source :: struct(), target :: struct()) :: struct()
@spec struct_from(attrs :: map(), target :: module()) :: struct()
Transforms the given source
map or struct into the target
struct.