View Source argo_nullable_value (argo v1.0.8)

Summary

Types

-type inner() :: null | {non_null, argo_value:t()} | {field_errors, [argo_error_value:t()]}.
-type t() ::
    #argo_nullable_value{wire_type :: argo_nullable_wire_type:t(),
                         inner :: argo_nullable_value:inner()}.

Functions

Link to this function

field_errors(NullableWireType, FieldErrors)

View Source
-spec field_errors(NullableWireType, FieldErrors) -> NullableValue
                when
                    NullableWireType :: argo_nullable_wire_type:t(),
                    FieldErrors :: [argo_error_value:t()],
                    NullableValue :: t().
Link to this function

is_field_errors(NullableValue)

View Source
-spec is_field_errors(NullableValue) -> boolean() when NullableValue :: t().
Link to this function

is_labeled(NullableValue)

View Source
-spec is_labeled(NullableValue) -> boolean() when NullableValue :: t().
Link to this function

is_non_null(NullableValue)

View Source
-spec is_non_null(NullableValue) -> boolean() when NullableValue :: t().
-spec is_null(NullableValue) -> boolean() when NullableValue :: t().
Link to this function

non_null(NullableWireType, Value)

View Source
-spec non_null(NullableWireType, Value) -> NullableValue
            when
                NullableWireType :: argo_nullable_wire_type:t(),
                Value :: argo_value:t(),
                NullableValue :: t().
-spec null(NullableWireType) -> NullableValue
        when NullableWireType :: argo_nullable_wire_type:t(), NullableValue :: t().
Link to this function

to_nullable_wire_type(NullableValue)

View Source
-spec to_nullable_wire_type(NullableValue) -> NullableWireType
                         when
                             NullableValue :: t(), NullableWireType :: argo_nullable_wire_type:t().