[][src]Struct paypal_rs::invoice::QRCodeParams

pub struct QRCodeParams {
    pub width: i32,
    pub height: i32,
    pub action: Option<String>,
}

QR creation parameters

Fields

width: i32

The width, in pixels, of the QR code image. Value is from 150 to 500.

height: i32

The height, in pixels, of the QR code image. Value is from 150 to 500.

action: Option<String>

The type of URL for which to generate a QR code. Valid values are pay and details.

Check QR_ACTION_PAY and QR_ACTION_DETAILS constants

Trait Implementations

impl Debug for QRCodeParams[src]

impl Default for QRCodeParams[src]

impl<'de> Deserialize<'de> for QRCodeParams[src]

impl Serialize for QRCodeParams[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

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.