pub struct OrderRefundLineItemCreateBuilder<I, Q> {
    pub id: I,
    pub name: Option<String>,
    pub product_id: Option<i32>,
    pub variation_id: Option<i32>,
    pub quantity: Q,
    pub total: Option<String>,
    pub total_tax: Option<String>,
    pub meta_data: Option<Vec<MetaData>>,
    pub refund_total: Option<f64>,
}

Fields§

§id: I

Item ID

§name: Option<String>

Product name.

§product_id: Option<i32>

Product ID.

§variation_id: Option<i32>

Variation ID, if applicable.

§quantity: Q

Quantity ordered.

§total: Option<String>

Line total (after discounts).

§total_tax: Option<String>

Line total tax (after discounts).

§meta_data: Option<Vec<MetaData>>

Meta data.

§refund_total: Option<f64>

Implementations§

source§

impl<I, Q> OrderRefundLineItemCreateBuilder<I, Q>

source

pub fn id(self, id: i32) -> OrderRefundLineItemCreateBuilder<WithId, Q>

Item ID

source

pub fn name(self, name: impl Into<String>) -> Self

Product name.

source

pub fn product_id(self, product_id: i32) -> Self

Product ID.

source

pub fn variation_id(self, variation_id: i32) -> Self

Variation ID, if applicable.

source

pub fn quantity( self, quantity: i32 ) -> OrderRefundLineItemCreateBuilder<I, WithQuantity>

Quantity ordered.

source

pub fn total(self, total: impl Into<String>) -> Self

Line total (after discounts).

source

pub fn total_tax(self, total_tax: impl Into<String>) -> Self

Line total tax (after discounts).

source

pub fn meta_data(self, key: impl Into<String>, value: impl Serialize) -> Self

Meta data.

source

pub fn refund_total(self, refund_total: f64) -> Self

source§

impl OrderRefundLineItemCreateBuilder<WithId, WithQuantity>

Trait Implementations§

source§

impl<I: Clone, Q: Clone> Clone for OrderRefundLineItemCreateBuilder<I, Q>

source§

fn clone(&self) -> OrderRefundLineItemCreateBuilder<I, Q>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<I: Default, Q: Default> Default for OrderRefundLineItemCreateBuilder<I, Q>

source§

fn default() -> OrderRefundLineItemCreateBuilder<I, Q>

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

Auto Trait Implementations§

§

impl<I, Q> Freeze for OrderRefundLineItemCreateBuilder<I, Q>
where I: Freeze, Q: Freeze,

§

impl<I, Q> RefUnwindSafe for OrderRefundLineItemCreateBuilder<I, Q>

§

impl<I, Q> Send for OrderRefundLineItemCreateBuilder<I, Q>
where I: Send, Q: Send,

§

impl<I, Q> Sync for OrderRefundLineItemCreateBuilder<I, Q>
where I: Sync, Q: Sync,

§

impl<I, Q> Unpin for OrderRefundLineItemCreateBuilder<I, Q>
where I: Unpin, Q: Unpin,

§

impl<I, Q> UnwindSafe for OrderRefundLineItemCreateBuilder<I, Q>
where I: UnwindSafe, Q: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more