#[repr(i32)]pub enum CodecPemSyntaxProfile {
CODEC_PEM_SYNTAX_PROFILE_UNSPECIFIED = 0,
CODEC_PEM_SYNTAX_PROFILE_STRICT = 100,
CODEC_PEM_SYNTAX_PROFILE_COMPATIBLE = 110,
}Expand description
A separate compatibility mode retains established PEM bundle admission. Strict mode rejects surrounding text, legacy headers, and inline armor.
Variants§
CODEC_PEM_SYNTAX_PROFILE_UNSPECIFIED = 0
CODEC_PEM_SYNTAX_PROFILE_STRICT = 100
CODEC_PEM_SYNTAX_PROFILE_COMPATIBLE = 110
Implementations§
Source§impl CodecPemSyntaxProfile
impl CodecPemSyntaxProfile
Sourcepub const Unspecified: CodecPemSyntaxProfile = Self::CODEC_PEM_SYNTAX_PROFILE_UNSPECIFIED
pub const Unspecified: CodecPemSyntaxProfile = Self::CODEC_PEM_SYNTAX_PROFILE_UNSPECIFIED
Idiomatic alias for Self::CODEC_PEM_SYNTAX_PROFILE_UNSPECIFIED; Debug prints the variant name.
Sourcepub const Strict: CodecPemSyntaxProfile = Self::CODEC_PEM_SYNTAX_PROFILE_STRICT
pub const Strict: CodecPemSyntaxProfile = Self::CODEC_PEM_SYNTAX_PROFILE_STRICT
Idiomatic alias for Self::CODEC_PEM_SYNTAX_PROFILE_STRICT; Debug prints the variant name.
Sourcepub const Compatible: CodecPemSyntaxProfile = Self::CODEC_PEM_SYNTAX_PROFILE_COMPATIBLE
pub const Compatible: CodecPemSyntaxProfile = Self::CODEC_PEM_SYNTAX_PROFILE_COMPATIBLE
Idiomatic alias for Self::CODEC_PEM_SYNTAX_PROFILE_COMPATIBLE; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for CodecPemSyntaxProfile
impl Clone for CodecPemSyntaxProfile
Source§fn clone(&self) -> CodecPemSyntaxProfile
fn clone(&self) -> CodecPemSyntaxProfile
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 CodecPemSyntaxProfile
Source§impl Debug for CodecPemSyntaxProfile
impl Debug for CodecPemSyntaxProfile
Source§impl Default for CodecPemSyntaxProfile
impl Default for CodecPemSyntaxProfile
Source§fn default() -> CodecPemSyntaxProfile
fn default() -> CodecPemSyntaxProfile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CodecPemSyntaxProfile
impl<'de> Deserialize<'de> for CodecPemSyntaxProfile
Source§fn deserialize<__D>(
d: __D,
) -> Result<CodecPemSyntaxProfile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
d: __D,
) -> Result<CodecPemSyntaxProfile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Enumeration for CodecPemSyntaxProfile
impl Enumeration for CodecPemSyntaxProfile
Source§fn from_i32(value: i32) -> Option<CodecPemSyntaxProfile>
fn from_i32(value: i32) -> Option<CodecPemSyntaxProfile>
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<CodecPemSyntaxProfile>
fn from_proto_name(name: &str) -> Option<CodecPemSyntaxProfile>
Look up a variant by its protobuf name string. Read more
Source§fn values() -> &'static [CodecPemSyntaxProfile]
fn values() -> &'static [CodecPemSyntaxProfile]
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 CodecPemSyntaxProfile
Source§impl Hash for CodecPemSyntaxProfile
impl Hash for CodecPemSyntaxProfile
Source§impl PartialEq for CodecPemSyntaxProfile
impl PartialEq for CodecPemSyntaxProfile
Source§impl ProtoElemJson for CodecPemSyntaxProfile
impl ProtoElemJson for CodecPemSyntaxProfile
Source§fn serialize_proto_json<__S>(
v: &CodecPemSyntaxProfile,
s: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize_proto_json<__S>(
v: &CodecPemSyntaxProfile,
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<CodecPemSyntaxProfile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize_proto_json<'de, __D>(
d: __D,
) -> Result<CodecPemSyntaxProfile, <__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 CodecPemSyntaxProfile
impl Serialize for CodecPemSyntaxProfile
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 CodecPemSyntaxProfile
Auto Trait Implementations§
impl Forget for CodecPemSyntaxProfile
impl Freeze for CodecPemSyntaxProfile
impl Move for CodecPemSyntaxProfile
impl RefUnwindSafe for CodecPemSyntaxProfile
impl Send for CodecPemSyntaxProfile
impl Sync for CodecPemSyntaxProfile
impl Unpin for CodecPemSyntaxProfile
impl UnsafeUnpin for CodecPemSyntaxProfile
impl UnwindSafe for CodecPemSyntaxProfile
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