pub enum Attribute {
FinalHtlcTimeout(u64),
FinalHtlcMinimumExpiryDelta(u64),
ExpiryTime(Duration),
Description(String),
FallbackAddr(String),
UdtScript(String),
PayeePublicKey(Pubkey),
HashAlgorithm(HashAlgorithm),
Feature(Vec<String>),
PaymentSecret(String),
}Expand description
The attributes of the invoice.
Variants§
FinalHtlcTimeout(u64)
This attribute is deprecated since v0.6.0, The final tlc time out, in milliseconds
FinalHtlcMinimumExpiryDelta(u64)
The final tlc minimum expiry delta, in milliseconds, default is 1 day
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(String)
The udt type script of the invoice (serialized as 0x-prefixed hex of molecule bytes)
PayeePublicKey(Pubkey)
The payee public key of the invoice (validated compressed secp256k1 key, hex without 0x prefix)
HashAlgorithm(HashAlgorithm)
The hash algorithm of the invoice
Feature(Vec<String>)
The feature flags of the invoice
PaymentSecret(String)
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
impl Eq for Attribute
Source§impl JsonSchema for Attribute
impl JsonSchema for Attribute
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl 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