pub struct OpaqueMetadata { /* private fields */ }Expand description
Extension type metadata for Opaque.
Implementations§
Source§impl OpaqueMetadata
impl OpaqueMetadata
Sourcepub fn new(type_name: impl Into<String>, vendor_name: impl Into<String>) -> Self
Available on crate feature canonical_extension_types only.
pub fn new(type_name: impl Into<String>, vendor_name: impl Into<String>) -> Self
canonical_extension_types only.Returns a new OpaqueMetadata.
Sourcepub fn type_name(&self) -> &str
Available on crate feature canonical_extension_types only.
pub fn type_name(&self) -> &str
canonical_extension_types only.Returns the name of the unknown type in the external system.
Sourcepub fn vendor_name(&self) -> &str
Available on crate feature canonical_extension_types only.
pub fn vendor_name(&self) -> &str
canonical_extension_types only.Returns the name of the external system.
Trait Implementations§
Source§impl Clone for OpaqueMetadata
Available on crate feature canonical_extension_types only.
impl Clone for OpaqueMetadata
Available on crate feature
canonical_extension_types only.Source§fn clone(&self) -> OpaqueMetadata
fn clone(&self) -> OpaqueMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 OpaqueMetadata
Available on crate feature canonical_extension_types only.
impl Debug for OpaqueMetadata
Available on crate feature
canonical_extension_types only.Source§impl<'de> Deserialize<'de> for OpaqueMetadata
Available on crate feature canonical_extension_types only.
impl<'de> Deserialize<'de> for OpaqueMetadata
Available on crate feature
canonical_extension_types only.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
Source§impl From<OpaqueMetadata> for Opaque
Available on crate feature canonical_extension_types only.
impl From<OpaqueMetadata> for Opaque
Available on crate feature
canonical_extension_types only.Source§fn from(value: OpaqueMetadata) -> Self
fn from(value: OpaqueMetadata) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OpaqueMetadata
Available on crate feature canonical_extension_types only.
impl PartialEq for OpaqueMetadata
Available on crate feature
canonical_extension_types only.Source§impl Serialize for OpaqueMetadata
Available on crate feature canonical_extension_types only.
impl Serialize for OpaqueMetadata
Available on crate feature
canonical_extension_types only.impl StructuralPartialEq for OpaqueMetadata
Available on crate feature
canonical_extension_types only.Auto Trait Implementations§
impl Freeze for OpaqueMetadata
impl RefUnwindSafe for OpaqueMetadata
impl Send for OpaqueMetadata
impl Sync for OpaqueMetadata
impl Unpin for OpaqueMetadata
impl UnwindSafe for OpaqueMetadata
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