pub struct TypedSchemaValue { /* private fields */ }Expand description
A typed value: a self-contained SchemaGraph paired with a value tree
built against that schema.
The pair is the only public form for typed values; there is no bare-value overload of any walker / renderer / encoder API.
Implementations§
Source§impl TypedSchemaValue
impl TypedSchemaValue
pub fn new(graph: SchemaGraph, value: SchemaValue) -> TypedSchemaValue
pub fn graph(&self) -> &SchemaGraph
pub fn value(&self) -> &SchemaValue
pub fn root_type(&self) -> &SchemaType
pub fn into_parts(self) -> (SchemaGraph, SchemaValue)
Trait Implementations§
Source§impl Clone for TypedSchemaValue
impl Clone for TypedSchemaValue
Source§fn clone(&self) -> TypedSchemaValue
fn clone(&self) -> TypedSchemaValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypedSchemaValue
impl Debug for TypedSchemaValue
Source§impl<'de> Deserialize<'de> for TypedSchemaValue
impl<'de> Deserialize<'de> for TypedSchemaValue
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TypedSchemaValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TypedSchemaValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromSchema for TypedSchemaValue
impl FromSchema for TypedSchemaValue
fn from_value(value: &SchemaValue) -> Result<TypedSchemaValue, FromSchemaError>
Source§impl IntoSchema for TypedSchemaValue
impl IntoSchema for TypedSchemaValue
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl PartialEq for TypedSchemaValue
impl PartialEq for TypedSchemaValue
Source§impl Serialize for TypedSchemaValue
impl Serialize for TypedSchemaValue
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TypedSchemaValue
Auto Trait Implementations§
impl Freeze for TypedSchemaValue
impl RefUnwindSafe for TypedSchemaValue
impl Send for TypedSchemaValue
impl Sync for TypedSchemaValue
impl Unpin for TypedSchemaValue
impl UnsafeUnpin for TypedSchemaValue
impl UnwindSafe for TypedSchemaValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more