Struct veilid_core::Receipt
source · pub struct Receipt { /* private fields */ }
Implementations§
source§impl Receipt
impl Receipt
pub fn try_new<D: AsRef<[u8]>>( version: u8, crypto_kind: CryptoKind, nonce: Nonce, sender_id: PublicKey, extra_data: D ) -> VeilidAPIResult<Self>
pub fn from_signed_data(crypto: Crypto, data: &[u8]) -> VeilidAPIResult<Receipt>
pub fn to_signed_data( &self, crypto: Crypto, secret: &SecretKey ) -> VeilidAPIResult<Vec<u8>>
pub fn get_version(&self) -> u8
pub fn get_crypto_kind(&self) -> CryptoKind
pub fn get_nonce(&self) -> Nonce
pub fn get_sender_id(&self) -> PublicKey
pub fn get_sender_typed_id(&self) -> TypedKey
pub fn get_extra_data(&self) -> &[u8] ⓘ
Trait Implementations§
source§impl PartialEq for Receipt
impl PartialEq for Receipt
impl Eq for Receipt
impl StructuralPartialEq for Receipt
Auto Trait Implementations§
impl Freeze for Receipt
impl RefUnwindSafe for Receipt
impl Send for Receipt
impl Sync for Receipt
impl Unpin for Receipt
impl UnwindSafe for Receipt
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.