pub struct TypedGenericMetadata<A: Debug + Clone + Default> {
pub tpe: String,
pub value: Value,
pub aug: A,
}Fields§
§tpe: String§value: Value§aug: AImplementations§
Source§impl<A: Debug + Clone + Default> TypedGenericMetadata<A>
impl<A: Debug + Clone + Default> TypedGenericMetadata<A>
pub fn typed_generic_metadata_name() -> String
pub fn typed_value<AA: Debug + Default + Clone>( sr: TypedGenericMetadata<AA>, ) -> TypedGenericMetadata<AA>
Trait Implementations§
Source§impl<A: Clone + Debug + Clone + Default> Clone for TypedGenericMetadata<A>
impl<A: Clone + Debug + Clone + Default> Clone for TypedGenericMetadata<A>
Source§fn clone(&self) -> TypedGenericMetadata<A>
fn clone(&self) -> TypedGenericMetadata<A>
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<'de, A> Deserialize<'de> for TypedGenericMetadata<A>
impl<'de, A> Deserialize<'de> for TypedGenericMetadata<A>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<A> Freeze for TypedGenericMetadata<A>where
A: Freeze,
impl<A> RefUnwindSafe for TypedGenericMetadata<A>where
A: RefUnwindSafe,
impl<A> Send for TypedGenericMetadata<A>where
A: Send,
impl<A> Sync for TypedGenericMetadata<A>where
A: Sync,
impl<A> Unpin for TypedGenericMetadata<A>where
A: Unpin,
impl<A> UnsafeUnpin for TypedGenericMetadata<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for TypedGenericMetadata<A>where
A: UnwindSafe,
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