#[repr(i32)]pub enum Serialization {
CODEC_GENERAL_CBOR_SERIALIZATION_UNSPECIFIED = 0,
CODEC_GENERAL_CBOR_SERIALIZATION_RECEIVED = 1,
CODEC_GENERAL_CBOR_SERIALIZATION_PREFERRED = 2,
}Variants§
CODEC_GENERAL_CBOR_SERIALIZATION_UNSPECIFIED = 0
CODEC_GENERAL_CBOR_SERIALIZATION_RECEIVED = 1
CODEC_GENERAL_CBOR_SERIALIZATION_PREFERRED = 2
Implementations§
Source§impl CodecGeneralCborSerialization
impl CodecGeneralCborSerialization
Sourcepub const Unspecified: CodecGeneralCborSerialization = Self::CODEC_GENERAL_CBOR_SERIALIZATION_UNSPECIFIED
pub const Unspecified: CodecGeneralCborSerialization = Self::CODEC_GENERAL_CBOR_SERIALIZATION_UNSPECIFIED
Idiomatic alias for Self::CODEC_GENERAL_CBOR_SERIALIZATION_UNSPECIFIED; Debug prints the variant name.
Sourcepub const Received: CodecGeneralCborSerialization = Self::CODEC_GENERAL_CBOR_SERIALIZATION_RECEIVED
pub const Received: CodecGeneralCborSerialization = Self::CODEC_GENERAL_CBOR_SERIALIZATION_RECEIVED
Idiomatic alias for Self::CODEC_GENERAL_CBOR_SERIALIZATION_RECEIVED; Debug prints the variant name.
Sourcepub const Preferred: CodecGeneralCborSerialization = Self::CODEC_GENERAL_CBOR_SERIALIZATION_PREFERRED
pub const Preferred: CodecGeneralCborSerialization = Self::CODEC_GENERAL_CBOR_SERIALIZATION_PREFERRED
Idiomatic alias for Self::CODEC_GENERAL_CBOR_SERIALIZATION_PREFERRED; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for CodecGeneralCborSerialization
impl Clone for CodecGeneralCborSerialization
Source§fn clone(&self) -> CodecGeneralCborSerialization
fn clone(&self) -> CodecGeneralCborSerialization
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 moreimpl Copy for CodecGeneralCborSerialization
Source§impl Default for CodecGeneralCborSerialization
impl Default for CodecGeneralCborSerialization
Source§fn default() -> CodecGeneralCborSerialization
fn default() -> CodecGeneralCborSerialization
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CodecGeneralCborSerialization
impl<'de> Deserialize<'de> for CodecGeneralCborSerialization
Source§fn deserialize<__D>(
d: __D,
) -> Result<CodecGeneralCborSerialization, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
d: __D,
) -> Result<CodecGeneralCborSerialization, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Enumeration for CodecGeneralCborSerialization
impl Enumeration for CodecGeneralCborSerialization
Source§fn from_i32(value: i32) -> Option<CodecGeneralCborSerialization>
fn from_i32(value: i32) -> Option<CodecGeneralCborSerialization>
Convert from an
i32 wire value to the enum. Read moreSource§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.Source§fn from_proto_name(name: &str) -> Option<CodecGeneralCborSerialization>
fn from_proto_name(name: &str) -> Option<CodecGeneralCborSerialization>
Look up a variant by its protobuf name string. Read more
Source§fn values() -> &'static [CodecGeneralCborSerialization]
fn values() -> &'static [CodecGeneralCborSerialization]
All known variants of this enum, in proto declaration order. Read more
Source§const IS_NULL_VALUE: bool = false
const IS_NULL_VALUE: bool = false
Whether this enum represents
google.protobuf.NullValue for JSON collections. Read moreimpl Eq for CodecGeneralCborSerialization
Source§impl Hash for CodecGeneralCborSerialization
impl Hash for CodecGeneralCborSerialization
Source§impl ProtoElemJson for CodecGeneralCborSerialization
impl ProtoElemJson for CodecGeneralCborSerialization
Source§fn serialize_proto_json<__S>(
v: &CodecGeneralCborSerialization,
s: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize_proto_json<__S>(
v: &CodecGeneralCborSerialization,
s: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value with proto3 JSON semantics.
Source§fn deserialize_proto_json<'de, __D>(
d: __D,
) -> Result<CodecGeneralCborSerialization, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize_proto_json<'de, __D>(
d: __D,
) -> Result<CodecGeneralCborSerialization, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize a value with proto3 JSON semantics.
Source§fn deserialize_proto_json_null<E>() -> Result<Self, E>where
E: Error,
fn deserialize_proto_json_null<E>() -> Result<Self, E>where
E: Error,
Deserialize a JSON
null when it is a valid representation of this
protobuf type inside a container. Most protobuf element types reject
null; google.protobuf.Value overrides this for its null variant.Source§impl Serialize for CodecGeneralCborSerialization
impl Serialize for CodecGeneralCborSerialization
Source§fn serialize<__S>(
&self,
s: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
s: __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 CodecGeneralCborSerialization
Auto Trait Implementations§
impl Forget for CodecGeneralCborSerialization
impl Freeze for CodecGeneralCborSerialization
impl Move for CodecGeneralCborSerialization
impl RefUnwindSafe for CodecGeneralCborSerialization
impl Send for CodecGeneralCborSerialization
impl Sync for CodecGeneralCborSerialization
impl Unpin for CodecGeneralCborSerialization
impl UnsafeUnpin for CodecGeneralCborSerialization
impl UnwindSafe for CodecGeneralCborSerialization
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