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

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

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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.