OnePiece.Commanded.Helpers (OnePiece.Commanded v0.4.1) View Source

A Swiss Army Knife Helper Module.

Link to this section Summary

Functions

Generates a UUID using the version 4 scheme, as described in RFC 4122, with a hex format.

Transforms the given source map or struct into the target struct.

Link to this section Functions

Specs

generate_uuid() :: String.t()

Generates a UUID using the version 4 scheme, as described in RFC 4122, with a hex format.

Link to this function

struct_from(source, target)

View Source

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.