pub struct ListSkus<'a> {
pub active: Option<bool>,
pub attributes: Option<Metadata>,
pub ending_before: Option<SkuId>,
pub expand: &'a [&'a str],
pub ids: Option<Vec<String>>,
pub in_stock: Option<bool>,
pub limit: Option<u64>,
pub product: Option<IdOrCreate<'a, CreateProduct<'a>>>,
pub starting_after: Option<SkuId>,
}
Expand description
The parameters for Sku::list
.
Fields
active: Option<bool>
Only return SKUs that are active or inactive (e.g., pass false
to list all inactive products).
attributes: Option<Metadata>
Only return SKUs that have the specified key-value pairs in this partially constructed dictionary.
Can be specified only if product
is also supplied.
For instance, if the associated product has attributes ["color", "size"]
, passing in attributes[color]=red
returns all the SKUs for this product that have color
set to red
.
ending_before: Option<SkuId>
A cursor for use in pagination.
ending_before
is an object ID that defines your place in the list.
For instance, if you make a list request and receive 100 objects, starting with obj_bar
, your subsequent call can include ending_before=obj_bar
in order to fetch the previous page of the list.
expand: &'a [&'a str]
Specifies which fields in the response should be expanded.
ids: Option<Vec<String>>
Only return SKUs with the given IDs.
in_stock: Option<bool>
Only return SKUs that are either in stock or out of stock (e.g., pass false
to list all SKUs that are out of stock).
If no value is provided, all SKUs are returned.
limit: Option<u64>
A limit on the number of objects to be returned.
Limit can range between 1 and 100, and the default is 10.
product: Option<IdOrCreate<'a, CreateProduct<'a>>>
The ID of the product whose SKUs will be retrieved.
Must be a product with type good
.
starting_after: Option<SkuId>
A cursor for use in pagination.
starting_after
is an object ID that defines your place in the list.
For instance, if you make a list request and receive 100 objects, ending with obj_foo
, your subsequent call can include starting_after=obj_foo
in order to fetch the next page of the list.
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for ListSkus<'a>
impl<'a> Send for ListSkus<'a>
impl<'a> Sync for ListSkus<'a>
impl<'a> Unpin for ListSkus<'a>
impl<'a> UnwindSafe for ListSkus<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more