Struct shippo::CustomsDeclaration [−][src]
pub struct CustomsDeclaration {}Show fields
pub object_id: String, pub object_owner: String, pub object_state: String, pub exporter_reference: String, pub importer_reference: String, pub contents_type: String, pub contents_explanation: String, pub invoice: String, pub license: String, pub certificate: String, pub notes: String, pub eel_pfc: String, pub aes_itn: String, pub non_delivery_option: String, pub certify: bool, pub certify_signer: String, pub disclaimer: String, pub incoterm: String, pub b13a_filing_option: String, pub b13a_number: String, pub items: Vec<String>, pub metadata: String, pub test: bool,
A customs declaration object. Customs declarations are relevant information, including one or multiple customs items, you need to provide for customs clearance for your international shipments. FROM: https://goshippo.com/docs/reference#customs-declarations
Fields
object_id: String
Unique identifier of the given object.
object_owner: String
Username of the user who created the object.
object_state: String
Indicates the validity of the Customs Item. “VALID” | “INVALID”
exporter_reference: String
Exporter reference of an export shipment.
importer_reference: String
Importer reference of an import shipment.
contents_type: String
Type of goods of the shipment. ‘DOCUMENTS’ | ‘GIFT’ | ‘SAMPLE’ | ‘MERCHANDISE’ | ‘HUMANITARIAN_DONATION’ ‘RETURN_MERCHANDISE’ | ‘OTHER’
contents_explanation: String
Explanation of the type of goods of the shipment.
invoice: String
Invoice reference of the shipment.
license: String
License reference of the shipment.
certificate: String
Certificate reference of the shipment.
notes: String
Additional notes to be included in the customs declaration.
eel_pfc: String
EEL / PFC type of the shipment. For most shipments from the US to CA, ‘NOEEI_30_36’ is applicable; for most other shipments from the US, ‘NOEEI_30_37_a’ is applicable. ‘NOEEI_30_37_a’ | ‘NOEEI_30_37_h’ | ‘NOEEI_30_37_f’ | ‘NOEEI_30_36’ | ‘AES_ITN’
aes_itn: String
AES / ITN reference of the shipment.
non_delivery_option: String
Indicates how the carrier should proceed in case the shipment can’t be delivered. ‘ABANDON’ | ‘RETURN’
certify: bool
Expresses that the certify_signer has provided all information of this customs declaration truthfully.
certify_signer: String
Name of the person who created the customs declaration and is responsible for the validity of all information provided.
disclaimer: String
Disclaimer for the shipment and customs information that have been provided.
incoterm: String
The incoterm reference of the shipment. FCA available for DHL Express and FedEx only.
b13a_filing_option: String
B13A Option details are obtained by filing a B13A Canada Export Declaration via the Canadian Export Reporting System (CERS). ‘FILED_ELECTRONICALLY’ | SUMMARY_REPORTING’ | ‘NOT_REQUIRED’
b13a_number: String
Represents: the Proof of Report (POR) Number when b13a_filing_option is FILED_ELECTRONICALLY; the Summary ID Number when b13a_filing_option is SUMMARY_REPORTING; or the Exemption Number when b13a_filing_option is NOT_REQUIRED.
items: Vec<String>
Distinct Parcel content items as Customs Items object_ids.
metadata: String
A string of up to 100 characters that can be filled with any additional information you want to attach to the object.
test: bool
Indicates whether the object has been created in test mode.
Trait Implementations
impl Clone for CustomsDeclaration
[src]
impl Clone for CustomsDeclaration
[src]fn clone(&self) -> CustomsDeclaration
[src]
fn clone(&self) -> CustomsDeclaration
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for CustomsDeclaration
[src]
impl Debug for CustomsDeclaration
[src]impl Default for CustomsDeclaration
[src]
impl Default for CustomsDeclaration
[src]fn default() -> CustomsDeclaration
[src]
fn default() -> CustomsDeclaration
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for CustomsDeclaration
[src]
impl<'de> Deserialize<'de> for CustomsDeclaration
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Serialize for CustomsDeclaration
[src]
impl Serialize for CustomsDeclaration
[src]Auto Trait Implementations
impl RefUnwindSafe for CustomsDeclaration
impl Send for CustomsDeclaration
impl Sync for CustomsDeclaration
impl Unpin for CustomsDeclaration
impl UnwindSafe for CustomsDeclaration
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
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>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,