pub struct Beneficiary {
pub address: Address,
pub amount: Payment,
}
Fields§
§address: Address
§amount: Payment
Implementations§
Source§impl Beneficiary
impl Beneficiary
pub fn new(address: Address, amount: impl Into<Payment>) -> Beneficiary
pub fn with_max(address: Address) -> Beneficiary
pub fn is_max(&self) -> bool
pub fn script_pubkey(&self) -> ScriptPubkey
Trait Implementations§
Source§impl Clone for Beneficiary
impl Clone for Beneficiary
Source§fn clone(&self) -> Beneficiary
fn clone(&self) -> Beneficiary
Returns a copy 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 Beneficiary
impl Debug for Beneficiary
Source§impl Display for Beneficiary
impl Display for Beneficiary
Source§impl FromStr for Beneficiary
impl FromStr for Beneficiary
Source§type Err = BeneficiaryParseError
type Err = BeneficiaryParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<Beneficiary, <Beneficiary as FromStr>::Err>
fn from_str(s: &str) -> Result<Beneficiary, <Beneficiary as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreSource§impl PartialEq for Beneficiary
impl PartialEq for Beneficiary
impl Copy for Beneficiary
impl Eq for Beneficiary
impl StructuralPartialEq for Beneficiary
Auto Trait Implementations§
impl Freeze for Beneficiary
impl RefUnwindSafe for Beneficiary
impl Send for Beneficiary
impl Sync for Beneficiary
impl Unpin for Beneficiary
impl UnwindSafe for Beneficiary
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§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.