pub enum Attribute {
FinalHtlcTimeout(u64),
FinalHtlcMinimumExpiryDelta(u64),
ExpiryTime(Duration),
Description(String),
FallbackAddr(String),
UdtScript(CkbScript),
PayeePublicKey(PublicKey),
HashAlgorithm(HashAlgorithm),
Feature(FeatureVector),
PaymentSecret(Hash256),
}Expand description
The attributes of the invoice.
Variants§
FinalHtlcTimeout(u64)
This attribute is deprecated since v0.6.0. The final TLC timeout, in milliseconds.
FinalHtlcMinimumExpiryDelta(u64)
The final TLC minimum expiry delta, in milliseconds. Default is 160 minutes.
ExpiryTime(Duration)
The expiry time of the invoice, in seconds.
Description(String)
The description of the invoice.
FallbackAddr(String)
The fallback address of the invoice.
UdtScript(CkbScript)
The UDT type script of the invoice.
PayeePublicKey(PublicKey)
The payee public key of the invoice.
HashAlgorithm(HashAlgorithm)
The hash algorithm of the invoice.
Feature(FeatureVector)
The feature flags of the invoice.
PaymentSecret(Hash256)
The payment secret of the invoice.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Attribute
impl<'de> Deserialize<'de> for Attribute
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Attribute> for InvoiceAttr
impl From<Attribute> for InvoiceAttr
Source§impl From<InvoiceAttr> for Attribute
impl From<InvoiceAttr> for Attribute
Source§fn from(attr: InvoiceAttr) -> Self
fn from(attr: InvoiceAttr) -> Self
Converts to this type from the input type.
impl Eq for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl !Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnsafeUnpin for Attribute
impl UnwindSafe for Attribute
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