pub struct CodecPemBundleDecodeRequest {
pub pem: SecretBytes,
pub options: MessageField<CodecPemBundleDecodeOptions, Inline<CodecPemBundleDecodeOptions>>,
}Fields§
§pem: SecretBytesSENSITIVE: armor may contain identifying certificates or private keys.
Field 1: pem
options: MessageField<CodecPemBundleDecodeOptions, Inline<CodecPemBundleDecodeOptions>>Field 2: options
Implementations§
Source§impl CodecPemBundleDecodeRequest
impl CodecPemBundleDecodeRequest
Sourcepub fn with_pem(
self,
value: impl Into<SecretBytes>,
) -> CodecPemBundleDecodeRequest
pub fn with_pem( self, value: impl Into<SecretBytes>, ) -> CodecPemBundleDecodeRequest
Sets Self::pem to value, consuming and returning self.
Sourcepub fn with_options(
self,
value: impl Into<MessageField<CodecPemBundleDecodeOptions, Inline<CodecPemBundleDecodeOptions>>>,
) -> CodecPemBundleDecodeRequest
pub fn with_options( self, value: impl Into<MessageField<CodecPemBundleDecodeOptions, Inline<CodecPemBundleDecodeOptions>>>, ) -> CodecPemBundleDecodeRequest
Sets Self::options to value, consuming and returning self.
Trait Implementations§
Source§impl Clone for CodecPemBundleDecodeRequest
impl Clone for CodecPemBundleDecodeRequest
Source§fn clone(&self) -> CodecPemBundleDecodeRequest
fn clone(&self) -> CodecPemBundleDecodeRequest
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 moreSource§impl Debug for CodecPemBundleDecodeRequest
impl Debug for CodecPemBundleDecodeRequest
Source§impl Default for CodecPemBundleDecodeRequest
impl Default for CodecPemBundleDecodeRequest
Source§fn default() -> CodecPemBundleDecodeRequest
fn default() -> CodecPemBundleDecodeRequest
Returns the “default value” for a type. Read more
Source§impl DefaultInstance for CodecPemBundleDecodeRequest
impl DefaultInstance for CodecPemBundleDecodeRequest
Source§fn default_instance() -> &'static CodecPemBundleDecodeRequest
fn default_instance() -> &'static CodecPemBundleDecodeRequest
Return a reference to the single default instance of this type.
Source§impl<'de> Deserialize<'de> for CodecPemBundleDecodeRequest
impl<'de> Deserialize<'de> for CodecPemBundleDecodeRequest
Source§fn deserialize<__D>(
d: __D,
) -> Result<CodecPemBundleDecodeRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
d: __D,
) -> Result<CodecPemBundleDecodeRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Drop for CodecPemBundleDecodeRequest
impl Drop for CodecPemBundleDecodeRequest
Source§impl Message for CodecPemBundleDecodeRequest
impl Message for CodecPemBundleDecodeRequest
Source§fn compute_size(&self, __cache: &mut SizeCache) -> u32
fn compute_size(&self, __cache: &mut SizeCache) -> u32
Returns the total encoded size in bytes.
Accumulates in u64 (which cannot overflow for in-memory
data) and saturates to u32 at return, so a message whose
encoded size exceeds the 2 GiB protobuf limit yields a value
above ::buffa::MAX_MESSAGE_BYTES that the encode entry
points reject, never a silently wrapped size.
Source§fn write_to(&self, __cache: &mut SizeCache, buf: &mut impl EncodeSink)
fn write_to(&self, __cache: &mut SizeCache, buf: &mut impl EncodeSink)
Write this message’s encoded bytes to a buffer, consuming
nested-message sizes from
cache (populated by a prior
compute_size call on the same cache). Read moreSource§fn merge_field(
&mut self,
tag: Tag,
buf: &mut impl Buf,
ctx: DecodeContext<'_>,
) -> Result<(), DecodeError>
fn merge_field( &mut self, tag: Tag, buf: &mut impl Buf, ctx: DecodeContext<'_>, ) -> Result<(), DecodeError>
Processes a single already-decoded tag and its associated field data
from
buf. Read moreSource§fn encode(&self, buf: &mut impl EncodeSink)
fn encode(&self, buf: &mut impl EncodeSink)
Compute size, then write. This is the primary encoding API. Read more
Source§fn try_encode(&self, buf: &mut impl EncodeSink) -> Result<(), EncodeError>
fn try_encode(&self, buf: &mut impl EncodeSink) -> Result<(), EncodeError>
Encode, returning an error instead of panicking if the encoded size
exceeds the 2 GiB protobuf limit (
MAX_MESSAGE_BYTES). Read moreSource§fn encode_with_cache(&self, cache: &mut SizeCache, buf: &mut impl EncodeSink)
fn encode_with_cache(&self, cache: &mut SizeCache, buf: &mut impl EncodeSink)
Source§fn try_encode_with_cache(
&self,
cache: &mut SizeCache,
buf: &mut impl EncodeSink,
) -> Result<(), EncodeError>
fn try_encode_with_cache( &self, cache: &mut SizeCache, buf: &mut impl EncodeSink, ) -> Result<(), EncodeError>
Encode with a caller-supplied
SizeCache,
returning an error instead of panicking if the encoded size exceeds
the 2 GiB protobuf limit (MAX_MESSAGE_BYTES). Clears the cache
first. Read moreSource§fn try_encode_bounded(
&self,
max_bytes: u32,
buf: &mut impl EncodeSink,
) -> Result<u32, EncodeError>
fn try_encode_bounded( &self, max_bytes: u32, buf: &mut impl EncodeSink, ) -> Result<u32, EncodeError>
Encode this message into
buf only if its encoded size fits within
max_bytes, using a single size pass that is then reused for the write. Read moreSource§fn try_encode_bounded_with_cache(
&self,
max_bytes: u32,
cache: &mut SizeCache,
buf: &mut impl EncodeSink,
) -> Result<u32, EncodeError>
fn try_encode_bounded_with_cache( &self, max_bytes: u32, cache: &mut SizeCache, buf: &mut impl EncodeSink, ) -> Result<u32, EncodeError>
Source§fn encoded_len(&self) -> u32
fn encoded_len(&self) -> u32
Compute the encoded byte size of this message. Read more
Source§fn try_encoded_len(&self) -> Result<u32, EncodeError>
fn try_encoded_len(&self) -> Result<u32, EncodeError>
Compute the encoded byte size, returning an error instead of
panicking if it exceeds the 2 GiB protobuf limit
(
MAX_MESSAGE_BYTES). Read moreSource§fn encode_length_delimited(&self, buf: &mut impl EncodeSink)
fn encode_length_delimited(&self, buf: &mut impl EncodeSink)
Encode this message as a length-delimited byte sequence. Read more
Source§fn try_encode_length_delimited(
&self,
buf: &mut impl EncodeSink,
) -> Result<(), EncodeError>
fn try_encode_length_delimited( &self, buf: &mut impl EncodeSink, ) -> Result<(), EncodeError>
Encode as a length-delimited byte sequence, returning an error
instead of panicking if the encoded size exceeds the 2 GiB protobuf
limit (
MAX_MESSAGE_BYTES). Read moreSource§fn try_encode_to_vec(&self) -> Result<Vec<u8>, EncodeError>
fn try_encode_to_vec(&self) -> Result<Vec<u8>, EncodeError>
Encode to a new
Vec<u8>, returning an error instead of panicking
if the encoded size exceeds the 2 GiB protobuf limit
(MAX_MESSAGE_BYTES). Read moreSource§fn encode_to_bytes(&self) -> Bytes
fn encode_to_bytes(&self) -> Bytes
Encode this message to a new
bytes::Bytes. Read moreSource§fn try_encode_to_bytes(&self) -> Result<Bytes, EncodeError>
fn try_encode_to_bytes(&self) -> Result<Bytes, EncodeError>
Encode to a new
bytes::Bytes, returning an error instead of
panicking if the encoded size exceeds the 2 GiB protobuf limit
(MAX_MESSAGE_BYTES). Read moreSource§fn decode(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
fn decode(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
Decode a message from a buffer.
Source§fn decode_from_slice(data: &[u8]) -> Result<Self, DecodeError>where
Self: Sized,
fn decode_from_slice(data: &[u8]) -> Result<Self, DecodeError>where
Self: Sized,
Decode a message from a byte slice. Read more
Source§fn decode_length_delimited(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
fn decode_length_delimited(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
Decode a length-delimited message from a buffer. Read more
Source§fn merge_to_limit(
&mut self,
buf: &mut impl Buf,
ctx: DecodeContext<'_>,
limit: usize,
) -> Result<(), DecodeError>
fn merge_to_limit( &mut self, buf: &mut impl Buf, ctx: DecodeContext<'_>, limit: usize, ) -> Result<(), DecodeError>
Source§fn merge_group(
&mut self,
buf: &mut impl Buf,
ctx: DecodeContext<'_>,
field_number: u32,
) -> Result<(), DecodeError>
fn merge_group( &mut self, buf: &mut impl Buf, ctx: DecodeContext<'_>, field_number: u32, ) -> Result<(), DecodeError>
Merges a group-encoded message from
buf, reading fields until an
EndGroup tag with the given field_number is encountered. Read moreSource§fn merge(
&mut self,
buf: &mut impl Buf,
ctx: DecodeContext<'_>,
) -> Result<(), DecodeError>
fn merge( &mut self, buf: &mut impl Buf, ctx: DecodeContext<'_>, ) -> Result<(), DecodeError>
Merge fields from a buffer into this message. Read more
Source§fn merge_from_slice(&mut self, data: &[u8]) -> Result<(), DecodeError>
fn merge_from_slice(&mut self, data: &[u8]) -> Result<(), DecodeError>
Merge fields from a byte slice into this message. Read more
Source§fn merge_length_delimited(
&mut self,
buf: &mut impl Buf,
ctx: DecodeContext<'_>,
) -> Result<(), DecodeError>
fn merge_length_delimited( &mut self, buf: &mut impl Buf, ctx: DecodeContext<'_>, ) -> Result<(), DecodeError>
Merge fields from a length-delimited sub-message payload into this message. Read more
Source§impl MessageName for CodecPemBundleDecodeRequest
impl MessageName for CodecPemBundleDecodeRequest
Source§const PACKAGE: &'static str = "reallyme.codec.v1"
const PACKAGE: &'static str = "reallyme.codec.v1"
The protobuf package the message is declared in. Read more
Source§const NAME: &'static str = "CodecPemBundleDecodeRequest"
const NAME: &'static str = "CodecPemBundleDecodeRequest"
The unqualified message name, with
. between nesting levels. Read moreSource§impl ProtoElemJson for CodecPemBundleDecodeRequest
impl ProtoElemJson for CodecPemBundleDecodeRequest
Source§fn serialize_proto_json<__S>(
v: &CodecPemBundleDecodeRequest,
s: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize_proto_json<__S>(
v: &CodecPemBundleDecodeRequest,
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<CodecPemBundleDecodeRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize_proto_json<'de, __D>(
d: __D,
) -> Result<CodecPemBundleDecodeRequest, <__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 CodecPemBundleDecodeRequest
impl Serialize for CodecPemBundleDecodeRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __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 CodecPemBundleDecodeRequest
impl ZeroizeOnDrop for CodecPemBundleDecodeRequest
Auto Trait Implementations§
impl Forget for CodecPemBundleDecodeRequest
impl Freeze for CodecPemBundleDecodeRequest
impl Move for CodecPemBundleDecodeRequest
impl RefUnwindSafe for CodecPemBundleDecodeRequest
impl Send for CodecPemBundleDecodeRequest
impl Sync for CodecPemBundleDecodeRequest
impl Unpin for CodecPemBundleDecodeRequest
impl UnsafeUnpin for CodecPemBundleDecodeRequest
impl UnwindSafe for CodecPemBundleDecodeRequest
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