#[repr(i32)]pub enum CodecPemDecodeScope {
CODEC_PEM_DECODE_SCOPE_UNSPECIFIED = 0,
CODEC_PEM_DECODE_SCOPE_ALL = 100,
CODEC_PEM_DECODE_SCOPE_FIRST = 110,
}Expand description
FIRST stops after the first complete block, including on malformed trailing armor. ALL validates every complete block before returning any of them.
Variants§
CODEC_PEM_DECODE_SCOPE_UNSPECIFIED = 0
CODEC_PEM_DECODE_SCOPE_ALL = 100
CODEC_PEM_DECODE_SCOPE_FIRST = 110
Implementations§
Source§impl CodecPemDecodeScope
impl CodecPemDecodeScope
Sourcepub const Unspecified: CodecPemDecodeScope = Self::CODEC_PEM_DECODE_SCOPE_UNSPECIFIED
pub const Unspecified: CodecPemDecodeScope = Self::CODEC_PEM_DECODE_SCOPE_UNSPECIFIED
Idiomatic alias for Self::CODEC_PEM_DECODE_SCOPE_UNSPECIFIED; Debug prints the variant name.
Sourcepub const All: CodecPemDecodeScope = Self::CODEC_PEM_DECODE_SCOPE_ALL
pub const All: CodecPemDecodeScope = Self::CODEC_PEM_DECODE_SCOPE_ALL
Idiomatic alias for Self::CODEC_PEM_DECODE_SCOPE_ALL; Debug prints the variant name.
Sourcepub const First: CodecPemDecodeScope = Self::CODEC_PEM_DECODE_SCOPE_FIRST
pub const First: CodecPemDecodeScope = Self::CODEC_PEM_DECODE_SCOPE_FIRST
Idiomatic alias for Self::CODEC_PEM_DECODE_SCOPE_FIRST; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for CodecPemDecodeScope
impl Clone for CodecPemDecodeScope
Source§fn clone(&self) -> CodecPemDecodeScope
fn clone(&self) -> CodecPemDecodeScope
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 CodecPemDecodeScope
Source§impl Debug for CodecPemDecodeScope
impl Debug for CodecPemDecodeScope
Source§impl Default for CodecPemDecodeScope
impl Default for CodecPemDecodeScope
Source§fn default() -> CodecPemDecodeScope
fn default() -> CodecPemDecodeScope
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CodecPemDecodeScope
impl<'de> Deserialize<'de> for CodecPemDecodeScope
Source§fn deserialize<__D>(
d: __D,
) -> Result<CodecPemDecodeScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
d: __D,
) -> Result<CodecPemDecodeScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Enumeration for CodecPemDecodeScope
impl Enumeration for CodecPemDecodeScope
Source§fn from_i32(value: i32) -> Option<CodecPemDecodeScope>
fn from_i32(value: i32) -> Option<CodecPemDecodeScope>
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<CodecPemDecodeScope>
fn from_proto_name(name: &str) -> Option<CodecPemDecodeScope>
Look up a variant by its protobuf name string. Read more
Source§fn values() -> &'static [CodecPemDecodeScope]
fn values() -> &'static [CodecPemDecodeScope]
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 CodecPemDecodeScope
Source§impl Hash for CodecPemDecodeScope
impl Hash for CodecPemDecodeScope
Source§impl PartialEq for CodecPemDecodeScope
impl PartialEq for CodecPemDecodeScope
Source§impl ProtoElemJson for CodecPemDecodeScope
impl ProtoElemJson for CodecPemDecodeScope
Source§fn serialize_proto_json<__S>(
v: &CodecPemDecodeScope,
s: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize_proto_json<__S>(
v: &CodecPemDecodeScope,
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<CodecPemDecodeScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize_proto_json<'de, __D>(
d: __D,
) -> Result<CodecPemDecodeScope, <__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 CodecPemDecodeScope
impl Serialize for CodecPemDecodeScope
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 CodecPemDecodeScope
Auto Trait Implementations§
impl Forget for CodecPemDecodeScope
impl Freeze for CodecPemDecodeScope
impl Move for CodecPemDecodeScope
impl RefUnwindSafe for CodecPemDecodeScope
impl Send for CodecPemDecodeScope
impl Sync for CodecPemDecodeScope
impl Unpin for CodecPemDecodeScope
impl UnsafeUnpin for CodecPemDecodeScope
impl UnwindSafe for CodecPemDecodeScope
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