Struct cashweb_payments::bip70::PaymentDetails [−][src]
Fields
network: Option<String>
"main" or "test"
outputs: Vec<Output>
Where payment should be sent
time: u64
Timestamp; when payment request created
expires: Option<u64>
Timestamp; when this request should be considered invalid
memo: Option<String>
Human-readable description of request for the customer
payment_url: Option<String>
URL to send Payment and get PaymentACK
merchant_data: Option<Vec<u8>>
Arbitrary data to include in the Payment message
Implementations
impl PaymentDetails
[src]
pub fn network(&self) -> &str
[src]
Returns the value of network
, or the default value if network
is unset.
pub fn expires(&self) -> u64
[src]
Returns the value of expires
, or the default value if expires
is unset.
pub fn memo(&self) -> &str
[src]
Returns the value of memo
, or the default value if memo
is unset.
pub fn payment_url(&self) -> &str
[src]
Returns the value of payment_url
, or the default value if payment_url
is unset.
pub fn merchant_data(&self) -> &[u8]
[src]
Returns the value of merchant_data
, or the default value if merchant_data
is unset.
Trait Implementations
impl Clone for PaymentDetails
[src]
fn clone(&self) -> PaymentDetails
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PaymentDetails
[src]
impl Default for PaymentDetails
[src]
impl Message for PaymentDetails
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
pub fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn decode<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
pub fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<PaymentDetails> for PaymentDetails
[src]
fn eq(&self, other: &PaymentDetails) -> bool
[src]
fn ne(&self, other: &PaymentDetails) -> bool
[src]
impl StructuralPartialEq for PaymentDetails
[src]
Auto Trait Implementations
impl RefUnwindSafe for PaymentDetails
[src]
impl Send for PaymentDetails
[src]
impl Sync for PaymentDetails
[src]
impl Unpin for PaymentDetails
[src]
impl UnwindSafe for PaymentDetails
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,