Struct cashweb_payments::bip70::PaymentRequest[][src]

pub struct PaymentRequest {
    pub payment_details_version: Option<u32>,
    pub pki_type: Option<String>,
    pub pki_data: Option<Vec<u8>>,
    pub serialized_payment_details: Vec<u8>,
    pub signature: Option<Vec<u8>>,
}

Fields

payment_details_version: Option<u32>pki_type: Option<String>

none / x509+sha256 / x509+sha1

pki_data: Option<Vec<u8>>

depends on pki_type

serialized_payment_details: Vec<u8>

PaymentDetails

signature: Option<Vec<u8>>

pki-dependent signature

Implementations

impl PaymentRequest[src]

pub fn payment_details_version(&self) -> u32[src]

Returns the value of payment_details_version, or the default value if payment_details_version is unset.

pub fn pki_type(&self) -> &str[src]

Returns the value of pki_type, or the default value if pki_type is unset.

pub fn pki_data(&self) -> &[u8][src]

Returns the value of pki_data, or the default value if pki_data is unset.

pub fn signature(&self) -> &[u8][src]

Returns the value of signature, or the default value if signature is unset.

Trait Implementations

impl Clone for PaymentRequest[src]

impl Debug for PaymentRequest[src]

impl Default for PaymentRequest[src]

impl Message for PaymentRequest[src]

impl PartialEq<PaymentRequest> for PaymentRequest[src]

impl StructuralPartialEq for PaymentRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.