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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for Element
impl PartialEq for Element
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