pub struct PackingSlip {
pub purchase_order_number: String,
pub content: String,
pub content_type: Option<ContentType>,
}Expand description
PackingSlip : Packing slip information.
Fields
purchase_order_number: StringPurchase order number of the shipment that the packing slip is for.
content: StringA Base64encoded string of the packing slip PDF.
content_type: Option<ContentType>The format of the file such as PDF, JPEG etc.
Implementations
sourceimpl PackingSlip
impl PackingSlip
sourcepub fn new(purchase_order_number: String, content: String) -> PackingSlip
pub fn new(purchase_order_number: String, content: String) -> PackingSlip
Packing slip information.
Trait Implementations
sourceimpl Clone for PackingSlip
impl Clone for PackingSlip
sourcefn clone(&self) -> PackingSlip
fn clone(&self) -> PackingSlip
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for PackingSlip
impl Debug for PackingSlip
sourceimpl Default for PackingSlip
impl Default for PackingSlip
sourcefn default() -> PackingSlip
fn default() -> PackingSlip
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PackingSlip
impl<'de> Deserialize<'de> for PackingSlip
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<PackingSlip> for PackingSlip
impl PartialEq<PackingSlip> for PackingSlip
sourcefn eq(&self, other: &PackingSlip) -> bool
fn eq(&self, other: &PackingSlip) -> bool
sourceimpl Serialize for PackingSlip
impl Serialize for PackingSlip
impl StructuralPartialEq for PackingSlip
Auto Trait Implementations
impl RefUnwindSafe for PackingSlip
impl Send for PackingSlip
impl Sync for PackingSlip
impl Unpin for PackingSlip
impl UnwindSafe for PackingSlip
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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