pub struct Element {
pub certificate: Option<Vec<u8>>,
pub parsed_successfully: Option<bool>,
pub subject: Option<Vec<u8>>,
pub issuer: Option<Vec<u8>>,
pub fingerprint: Option<Vec<u8>>,
pub expiry_time: Option<i64>,
pub start_time: Option<i64>,
}Fields§
§certificate: Option<Vec<u8>>§parsed_successfully: Option<bool>§subject: Option<Vec<u8>>§issuer: Option<Vec<u8>>§fingerprint: Option<Vec<u8>>§expiry_time: Option<i64>§start_time: Option<i64>Implementations§
Source§impl Element
impl Element
Sourcepub fn certificate(&self) -> &[u8] ⓘ
pub fn certificate(&self) -> &[u8] ⓘ
Returns the value of certificate, or the default value if certificate is unset.
Sourcepub fn parsed_successfully(&self) -> bool
pub fn parsed_successfully(&self) -> bool
Returns the value of parsed_successfully, or the default value if parsed_successfully is unset.
Sourcepub fn subject(&self) -> &[u8] ⓘ
pub fn subject(&self) -> &[u8] ⓘ
Returns the value of subject, or the default value if subject is unset.
Sourcepub fn issuer(&self) -> &[u8] ⓘ
pub fn issuer(&self) -> &[u8] ⓘ
Returns the value of issuer, or the default value if issuer is unset.
Sourcepub fn fingerprint(&self) -> &[u8] ⓘ
pub fn fingerprint(&self) -> &[u8] ⓘ
Returns the value of fingerprint, or the default value if fingerprint is unset.
Sourcepub fn expiry_time(&self) -> i64
pub fn expiry_time(&self) -> i64
Returns the value of expiry_time, or the default value if expiry_time is unset.
Sourcepub fn start_time(&self) -> i64
pub fn start_time(&self) -> i64
Returns the value of start_time, or the default value if start_time is unset.
Trait Implementations§
Source§impl Message for Element
impl Message for Element
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for Element
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
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