pub struct MailboxAuthorization { /* private fields */ }Expand description
Authorization to read a VTXO mailbox
It is tied to a block hash and is valid only as long as this block is recent. Recentness is specified per Ark server, but users are encouraged to use the tip when creating an authorization.
Implementations§
Source§impl MailboxAuthorization
impl MailboxAuthorization
pub fn new( mailbox_key: &Keypair, expiry: DateTime<Local>, ) -> MailboxAuthorization
Sourcepub fn mailbox(&self) -> MailboxIdentifier
pub fn mailbox(&self) -> MailboxIdentifier
The mailbox ID for which this authorization is signed
Trait Implementations§
Source§impl Clone for MailboxAuthorization
impl Clone for MailboxAuthorization
Source§fn clone(&self) -> MailboxAuthorization
fn clone(&self) -> MailboxAuthorization
Returns a duplicate of the value. Read more
1.0.0 · 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 MailboxAuthorization
impl Debug for MailboxAuthorization
Source§impl Hash for MailboxAuthorization
impl Hash for MailboxAuthorization
Source§impl Ord for MailboxAuthorization
impl Ord for MailboxAuthorization
Source§fn cmp(&self, other: &MailboxAuthorization) -> Ordering
fn cmp(&self, other: &MailboxAuthorization) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MailboxAuthorization
impl PartialEq for MailboxAuthorization
Source§impl PartialOrd for MailboxAuthorization
impl PartialOrd for MailboxAuthorization
Source§impl ProtocolEncoding for MailboxAuthorization
impl ProtocolEncoding for MailboxAuthorization
Source§fn encode<W: Write + ?Sized>(&self, w: &mut W) -> Result<(), Error>
fn encode<W: Write + ?Sized>(&self, w: &mut W) -> Result<(), Error>
Encode the object into the writer.
Source§fn decode<R: Read + ?Sized>(r: &mut R) -> Result<Self, ProtocolDecodingError>
fn decode<R: Read + ?Sized>(r: &mut R) -> Result<Self, ProtocolDecodingError>
Decode the object from the writer.
Source§fn deserialize(byte_slice: &[u8]) -> Result<Self, ProtocolDecodingError>
fn deserialize(byte_slice: &[u8]) -> Result<Self, ProtocolDecodingError>
Deserialize object from the given byte slice.
Source§fn serialize_hex(&self) -> String
fn serialize_hex(&self) -> String
Serialize the object to a lowercase hex string.
Source§fn deserialize_hex(hex_str: &str) -> Result<Self, ProtocolDecodingError>
fn deserialize_hex(hex_str: &str) -> Result<Self, ProtocolDecodingError>
Deserialize object from hex slice.
impl Copy for MailboxAuthorization
impl Eq for MailboxAuthorization
impl StructuralPartialEq for MailboxAuthorization
Auto Trait Implementations§
impl Freeze for MailboxAuthorization
impl RefUnwindSafe for MailboxAuthorization
impl Send for MailboxAuthorization
impl Sync for MailboxAuthorization
impl Unpin for MailboxAuthorization
impl UnwindSafe for MailboxAuthorization
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