pub struct PayInfo {
pub pay_info_bytes: [u8; 72],
}Expand description
Represents the unique payment information associated with the payment.
The bytes representing the payment information encode the public key of the provider with whom you are spending the payment, timestamp and a unique random 32 bytes.
§Fields
payinfo_bytes- An array of bytes representing the payment information.
Fields§
§pay_info_bytes: [u8; 72]Trait Implementations§
Source§impl Bytable for PayInfo
impl Bytable for PayInfo
fn to_byte_vec(&self) -> Vec<u8> ⓘ
fn try_from_byte_slice(slice: &[u8]) -> Result<PayInfo, CompactEcashError>
Source§impl<'de> Deserialize<'de> for PayInfo
impl<'de> Deserialize<'de> for PayInfo
Source§fn deserialize<D>(
deserializer: D,
) -> Result<PayInfo, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<PayInfo, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<NymPayInfo> for PayInfo
impl From<NymPayInfo> for PayInfo
Source§fn from(value: NymPayInfo) -> Self
fn from(value: NymPayInfo) -> Self
Converts to this type from the input type.
Source§impl From<PayInfo> for NymPayInfo
impl From<PayInfo> for NymPayInfo
Source§impl Serialize for PayInfo
impl Serialize for PayInfo
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for PayInfo
impl Eq for PayInfo
impl StructuralPartialEq for PayInfo
Auto Trait Implementations§
impl Freeze for PayInfo
impl RefUnwindSafe for PayInfo
impl Send for PayInfo
impl Sync for PayInfo
impl Unpin for PayInfo
impl UnsafeUnpin for PayInfo
impl UnwindSafe for PayInfo
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more