pub struct ProtocolMagic(/* private fields */);
Trait Implementations§
Source§impl Clone for ProtocolMagic
impl Clone for ProtocolMagic
Source§fn clone(&self) -> ProtocolMagic
fn clone(&self) -> ProtocolMagic
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 ProtocolMagic
impl Debug for ProtocolMagic
Source§impl Default for ProtocolMagic
impl Default for ProtocolMagic
Source§impl Deref for ProtocolMagic
impl Deref for ProtocolMagic
Source§impl<'de> Deserialize<'de> for ProtocolMagic
impl<'de> Deserialize<'de> for ProtocolMagic
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 Deserialize for ProtocolMagic
impl Deserialize for ProtocolMagic
fn deserialize<R: BufRead>( raw: &mut Deserializer<R>, ) -> Result<Self, DeserializeError>
Source§fn from_cbor_bytes(data: &[u8]) -> Result<Self, DeserializeError>where
Self: Sized,
fn from_cbor_bytes(data: &[u8]) -> Result<Self, DeserializeError>where
Self: Sized,
from-bytes using the exact CBOR format specified in the CDDL binary spec.
For hashes/addresses/etc this will include the CBOR bytes type/len/etc.
Source§impl Display for ProtocolMagic
impl Display for ProtocolMagic
Source§impl From<ProtocolMagic> for u32
impl From<ProtocolMagic> for u32
Source§fn from(val: ProtocolMagic) -> Self
fn from(val: ProtocolMagic) -> Self
Converts to this type from the input type.
Source§impl From<u32> for ProtocolMagic
impl From<u32> for ProtocolMagic
Source§impl Hash for ProtocolMagic
impl Hash for ProtocolMagic
Source§impl JsonSchema for ProtocolMagic
impl JsonSchema for ProtocolMagic
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Ord for ProtocolMagic
impl Ord for ProtocolMagic
Source§fn cmp(&self, other: &ProtocolMagic) -> Ordering
fn cmp(&self, other: &ProtocolMagic) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProtocolMagic
impl PartialEq for ProtocolMagic
Source§impl PartialOrd for ProtocolMagic
impl PartialOrd for ProtocolMagic
Source§impl Serialize for ProtocolMagic
impl Serialize for ProtocolMagic
Source§impl Serialize for ProtocolMagic
impl Serialize for ProtocolMagic
fn serialize<'se, W: Write>( &self, serializer: &'se mut Serializer<W>, ) -> Result<&'se mut Serializer<W>>
impl Copy for ProtocolMagic
impl Eq for ProtocolMagic
impl StructuralPartialEq for ProtocolMagic
Auto Trait Implementations§
impl Freeze for ProtocolMagic
impl RefUnwindSafe for ProtocolMagic
impl Send for ProtocolMagic
impl Sync for ProtocolMagic
impl Unpin for ProtocolMagic
impl UnwindSafe for ProtocolMagic
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