View Source OnePiece.Commanded.Helpers (OnePiece.Commanded v0.5.0)
A Swiss Army Knife Helper Module.
Link to this section Summary
Link to this section Functions
Specs
Returns true if the given module defines a struct.
Specs
generate_uuid() :: String.t()
Generates a UUID using the version 4 scheme, as described in RFC 4122, with a hex format.
Specs
struct_from(source :: struct(), target :: struct()) :: struct()
struct_from(attrs :: map(), target :: module()) :: struct()
Transforms the given source
map or struct into the target
struct.