pub struct RequestedDocumentSpecification {
pub format: DocumentFormat,
pub size: Box<DocumentSize>,
pub dpi: Option<i32>,
pub page_layout: Option<String>,
pub need_file_joining: bool,
pub requested_document_types: Vec<DocumentType>,
pub requested_label_customization: Option<Box<RequestedLabelCustomization>>,
}Expand description
RequestedDocumentSpecification : The document specifications requested. For calls to the purchaseShipment operation, the shipment purchase fails if the specified document specifications are not among those returned in the response to the getRates operation.
Fields§
§format: DocumentFormat§size: Box<DocumentSize>§dpi: Option<i32>The dots per inch (DPI) value used in printing. This value represents a measure of the resolution of the document.
page_layout: Option<String>Indicates the position of the label on the paper. Should be the same value as returned in getRates response.
need_file_joining: boolWhen true, files should be stitched together. Otherwise, files should be returned separately. Defaults to false.
requested_document_types: Vec<DocumentType>A list of the document types requested.
requested_label_customization: Option<Box<RequestedLabelCustomization>>Implementations§
Source§impl RequestedDocumentSpecification
impl RequestedDocumentSpecification
Sourcepub fn new(
format: DocumentFormat,
size: DocumentSize,
need_file_joining: bool,
requested_document_types: Vec<DocumentType>,
) -> RequestedDocumentSpecification
pub fn new( format: DocumentFormat, size: DocumentSize, need_file_joining: bool, requested_document_types: Vec<DocumentType>, ) -> RequestedDocumentSpecification
The document specifications requested. For calls to the purchaseShipment operation, the shipment purchase fails if the specified document specifications are not among those returned in the response to the getRates operation.
Trait Implementations§
Source§impl Clone for RequestedDocumentSpecification
impl Clone for RequestedDocumentSpecification
Source§fn clone(&self) -> RequestedDocumentSpecification
fn clone(&self) -> RequestedDocumentSpecification
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for RequestedDocumentSpecification
impl Default for RequestedDocumentSpecification
Source§fn default() -> RequestedDocumentSpecification
fn default() -> RequestedDocumentSpecification
Source§impl<'de> Deserialize<'de> for RequestedDocumentSpecification
impl<'de> Deserialize<'de> for RequestedDocumentSpecification
Source§fn 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>,
Source§impl PartialEq for RequestedDocumentSpecification
impl PartialEq for RequestedDocumentSpecification
Source§fn eq(&self, other: &RequestedDocumentSpecification) -> bool
fn eq(&self, other: &RequestedDocumentSpecification) -> bool
self and other values to be equal, and is used by ==.