pub struct ExpiryTime(_);
Positive duration that defines when (relatively to the timestamp) in the future the invoice
expires
The number of seconds this expiry time represents has to be in the range
0...(SYSTEM_TIME_MAX_UNIX_TIMESTAMP - MAX_EXPIRY_TIME)
to avoid overflows when adding it to a
timestamp
Construct an ExpiryTime
from seconds. If there exists a PositiveTimestamp
which would
overflow on adding the EpiryTime
to it then this function will return a
CreationError::ExpiryTimeOutOfBounds
.
Construct an ExpiryTime
from a Duration
. If there exists a PositiveTimestamp
which
would overflow on adding the EpiryTime
to it then this function will return a
CreationError::ExpiryTimeOutOfBounds
.
Returns the expiry time in seconds
Returns a reference to the underlying Duration
(=expiry time)
Performs copy-assignment from source
. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
The associated error which can be returned from parsing (e.g. because of bad padding).
Convert a base32 slice to Self
.
Convert Self
to base32 slice
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Convert base256 to base32, adds padding if necessary