Uri

Type Alias Uri 

Source
pub type Uri<'a, NetworkValidation> = Uri<'a, NetworkValidation, MaybePayjoinExtras>;

Aliased Type§

pub struct Uri<'a, NetworkValidation> {
    pub address: Address<NetworkValidation>,
    pub amount: Option<Amount>,
    pub label: Option<Param<'a>>,
    pub message: Option<Param<'a>>,
    pub extras: MaybePayjoinExtras,
}

Fields§

§address: Address<NetworkValidation>

The address provided in the URI.

This field is mandatory because the address is mandatory in BIP21.

§amount: Option<Amount>

Number of satoshis requested as payment.

§label: Option<Param<'a>>

The label of the address - e.g. name of the receiver.

§message: Option<Param<'a>>

Message that describes the transaction to the user.

§extras: MaybePayjoinExtras

Extra fields that can occur in a BIP21 URI.

Trait Implementations§

Source§

impl<'a> UriExt<'a> for Uri<'a, NetworkChecked>

Available on crate feature _core only.