pub struct Base { /* private fields */ }
Implementations§
Source§impl Base
impl Base
Sourcepub fn new(id: Id, header: Header, body: Body, options: BaseOptions) -> Self
pub fn new(id: Id, header: Header, body: Body, options: BaseOptions) -> Self
Create a new base object the provided options
pub fn id(&self) -> &Id
pub fn header(&self) -> &Header
pub fn flags(&self) -> Flags
pub fn body(&self) -> &Body
pub fn public_options(&self) -> &[Options]
pub fn private_options(&self) -> &PrivateOptions
pub fn signature(&self) -> &Option<Signature>
pub fn set_signature(&mut self, sig: Signature)
pub fn append_public_option(&mut self, o: Options)
pub fn append_private_option(&mut self, o: Options)
pub fn clean(&mut self)
Source§impl Base
impl Base
pub fn pub_key_option(options: &[Options]) -> Option<PublicKey>
pub fn peer_id_option(options: &[Options]) -> Option<Id>
pub fn issued_option(options: &[Options]) -> Option<DateTime>
pub fn expiry_option(options: &[Options]) -> Option<DateTime>
pub fn prev_sig_option(options: &[Options]) -> Option<Signature>
pub fn address_option(options: &[Options]) -> Option<Address>
pub fn raw(&self) -> &Option<Vec<u8>>
pub fn set_raw(&mut self, raw: Vec<u8>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Base
impl RefUnwindSafe for Base
impl Send for Base
impl Sync for Base
impl Unpin for Base
impl UnwindSafe for Base
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