pub struct CodecPemBundleDecodeResult {
pub blocks: List<CodecPemBundleBlock>,
}Fields§
§blocks: List<CodecPemBundleBlock>SENSITIVE: every returned block retains protected labels and DER.
Field 1: blocks
Implementations§
Source§impl CodecPemBundleDecodeResult
impl CodecPemBundleDecodeResult
Sourcepub fn with_blocks(
self,
value: impl Into<List<CodecPemBundleBlock>>,
) -> CodecPemBundleDecodeResult
pub fn with_blocks( self, value: impl Into<List<CodecPemBundleBlock>>, ) -> CodecPemBundleDecodeResult
Sets Self::blocks to value, consuming and returning self.
Trait Implementations§
Source§impl Clone for CodecPemBundleDecodeResult
impl Clone for CodecPemBundleDecodeResult
Source§fn clone(&self) -> CodecPemBundleDecodeResult
fn clone(&self) -> CodecPemBundleDecodeResult
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 CodecPemBundleDecodeResult
impl Debug for CodecPemBundleDecodeResult
Source§impl Default for CodecPemBundleDecodeResult
impl Default for CodecPemBundleDecodeResult
Source§fn default() -> CodecPemBundleDecodeResult
fn default() -> CodecPemBundleDecodeResult
Returns the “default value” for a type. Read more
Source§impl DefaultInstance for CodecPemBundleDecodeResult
impl DefaultInstance for CodecPemBundleDecodeResult
Source§fn default_instance() -> &'static CodecPemBundleDecodeResult
fn default_instance() -> &'static CodecPemBundleDecodeResult
Return a reference to the single default instance of this type.
Source§impl<'de> Deserialize<'de> for CodecPemBundleDecodeResult
impl<'de> Deserialize<'de> for CodecPemBundleDecodeResult
Source§fn deserialize<__D>(
d: __D,
) -> Result<CodecPemBundleDecodeResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
d: __D,
) -> Result<CodecPemBundleDecodeResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Drop for CodecPemBundleDecodeResult
impl Drop for CodecPemBundleDecodeResult
Source§impl Message for CodecPemBundleDecodeResult
impl Message for CodecPemBundleDecodeResult
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 CodecPemBundleDecodeResult
impl MessageName for CodecPemBundleDecodeResult
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 = "CodecPemBundleDecodeResult"
const NAME: &'static str = "CodecPemBundleDecodeResult"
The unqualified message name, with
. between nesting levels. Read moreSource§impl ProtoElemJson for CodecPemBundleDecodeResult
impl ProtoElemJson for CodecPemBundleDecodeResult
Source§fn serialize_proto_json<__S>(
v: &CodecPemBundleDecodeResult,
s: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize_proto_json<__S>(
v: &CodecPemBundleDecodeResult,
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<CodecPemBundleDecodeResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize_proto_json<'de, __D>(
d: __D,
) -> Result<CodecPemBundleDecodeResult, <__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 CodecPemBundleDecodeResult
impl Serialize for CodecPemBundleDecodeResult
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 CodecPemBundleDecodeResult
Source§impl Zeroize for CodecPemBundleDecodeResult
impl Zeroize for CodecPemBundleDecodeResult
impl ZeroizeOnDrop for CodecPemBundleDecodeResult
Auto Trait Implementations§
impl Forget for CodecPemBundleDecodeResult
impl Freeze for CodecPemBundleDecodeResult
impl Move for CodecPemBundleDecodeResult
impl RefUnwindSafe for CodecPemBundleDecodeResult
impl Send for CodecPemBundleDecodeResult
impl Sync for CodecPemBundleDecodeResult
impl Unpin for CodecPemBundleDecodeResult
impl UnsafeUnpin for CodecPemBundleDecodeResult
impl UnwindSafe for CodecPemBundleDecodeResult
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