Struct aws_sdk_outposts::types::LineItem
source · #[non_exhaustive]pub struct LineItem {
pub catalog_item_id: Option<String>,
pub line_item_id: Option<String>,
pub quantity: Option<i32>,
pub status: Option<LineItemStatus>,
pub shipment_information: Option<ShipmentInformation>,
pub asset_information_list: Option<Vec<LineItemAssetInformation>>,
pub previous_line_item_id: Option<String>,
pub previous_order_id: Option<String>,
}
Expand description
Information about a line item.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.catalog_item_id: Option<String>
The ID of the catalog item.
line_item_id: Option<String>
The ID of the line item.
quantity: Option<i32>
The quantity of the line item.
status: Option<LineItemStatus>
The status of the line item.
shipment_information: Option<ShipmentInformation>
Information about a line item shipment.
asset_information_list: Option<Vec<LineItemAssetInformation>>
Information about assets.
previous_line_item_id: Option<String>
The ID of the previous line item.
previous_order_id: Option<String>
The ID of the previous order.
Implementations§
source§impl LineItem
impl LineItem
sourcepub fn catalog_item_id(&self) -> Option<&str>
pub fn catalog_item_id(&self) -> Option<&str>
The ID of the catalog item.
sourcepub fn line_item_id(&self) -> Option<&str>
pub fn line_item_id(&self) -> Option<&str>
The ID of the line item.
sourcepub fn status(&self) -> Option<&LineItemStatus>
pub fn status(&self) -> Option<&LineItemStatus>
The status of the line item.
sourcepub fn shipment_information(&self) -> Option<&ShipmentInformation>
pub fn shipment_information(&self) -> Option<&ShipmentInformation>
Information about a line item shipment.
sourcepub fn asset_information_list(&self) -> &[LineItemAssetInformation]
pub fn asset_information_list(&self) -> &[LineItemAssetInformation]
Information about assets.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .asset_information_list.is_none()
.
sourcepub fn previous_line_item_id(&self) -> Option<&str>
pub fn previous_line_item_id(&self) -> Option<&str>
The ID of the previous line item.
sourcepub fn previous_order_id(&self) -> Option<&str>
pub fn previous_order_id(&self) -> Option<&str>
The ID of the previous order.
Trait Implementations§
source§impl PartialEq for LineItem
impl PartialEq for LineItem
impl StructuralPartialEq for LineItem
Auto Trait Implementations§
impl Freeze for LineItem
impl RefUnwindSafe for LineItem
impl Send for LineItem
impl Sync for LineItem
impl Unpin for LineItem
impl UnwindSafe for LineItem
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.