Struct quilkin::metadata::MetadataView [−][src]
#[non_exhaustive]pub struct MetadataView<T> { pub known: T, pub unknown: Mapping, }
Expand description
Represents a view into the metadata object attached to another object. T
represents metadata known to Quilkin under quilkin.dev
(available under
the KEY
constant.)
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.known: T
Known Quilkin metadata.
unknown: Mapping
User created metadata.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for MetadataView<T> where
T: RefUnwindSafe,
impl<T> Send for MetadataView<T> where
T: Send,
impl<T> Sync for MetadataView<T> where
T: Sync,
impl<T> Unpin for MetadataView<T> where
T: Unpin,
impl<T> UnwindSafe for MetadataView<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more