Type Alias relay_protocol::Object

source ·
pub type Object<T> = Map<String, Annotated<T>>;
Expand description

Alias for typed objects.

Aliased Type§

struct Object<T> { /* private fields */ }

Trait Implementations§

source§

impl<T> Empty for Object<T>
where T: Empty,

source§

fn is_empty(&self) -> bool

Returns whether this value is empty.
source§

fn is_deep_empty(&self) -> bool

Returns whether this value is empty or all of its descendants are empty. Read more
source§

impl<T> FromValue for Object<T>
where T: FromValue,

source§

fn from_value(value: Annotated<Value>) -> Annotated<Self>

Creates a meta structure from an annotated boxed value.
source§

impl<T> IntoValue for Object<T>
where T: IntoValue,

source§

fn into_value(self) -> Value

Boxes the meta structure back into a value.
source§

fn serialize_payload<S>( &self, s: S, behavior: SkipSerialization, ) -> Result<S::Ok, S::Error>
where Self: Sized, S: Serializer,

Efficiently serializes the payload directly.
source§

fn extract_child_meta(&self) -> Map<String, MetaTree>
where Self: Sized,

Extracts children meta map out of a value.
source§

fn extract_meta_tree(value: &Annotated<Self>) -> MetaTree
where Self: Sized,

Extracts the meta tree out of annotated value. Read more