pub struct PaymentSecret(/* private fields */);Implementations§
Source§impl PaymentSecret
impl PaymentSecret
pub const TOTAL_SIZE: usize = 32
pub const FIELD_SIZES: [usize; 1]
pub const FIELD_COUNT: usize = 1
pub fn value(&self) -> Byte32
pub fn as_reader<'r>(&'r self) -> PaymentSecretReader<'r>
Trait Implementations§
Source§impl Clone for PaymentSecret
impl Clone for PaymentSecret
Source§fn clone(&self) -> PaymentSecret
fn clone(&self) -> PaymentSecret
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 PaymentSecret
impl Debug for PaymentSecret
Source§impl Default for PaymentSecret
impl Default for PaymentSecret
Source§impl Display for PaymentSecret
impl Display for PaymentSecret
Source§impl Entity for PaymentSecret
impl Entity for PaymentSecret
const NAME: &'static str = "PaymentSecret"
type Builder = PaymentSecretBuilder
fn new_unchecked(data: Bytes) -> Self
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> VerificationResult<Self>
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>
fn new_builder() -> Self::Builder
fn as_builder(self) -> Self::Builder
Source§impl From<PaymentSecret> for InvoiceAttr
impl From<PaymentSecret> for InvoiceAttr
Source§fn from(value: PaymentSecret) -> Self
fn from(value: PaymentSecret) -> Self
Converts to this type from the input type.
Source§impl From<PaymentSecret> for InvoiceAttrUnion
impl From<PaymentSecret> for InvoiceAttrUnion
Source§fn from(item: PaymentSecret) -> Self
fn from(item: PaymentSecret) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for PaymentSecret
impl RefUnwindSafe for PaymentSecret
impl Send for PaymentSecret
impl Sync for PaymentSecret
impl Unpin for PaymentSecret
impl UnsafeUnpin for PaymentSecret
impl UnwindSafe for PaymentSecret
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