Struct squareup::models::InvoiceAttachment
source · pub struct InvoiceAttachment {
pub id: Option<String>,
pub filename: Option<String>,
pub description: Option<String>,
pub filesize: Option<i32>,
pub hash: Option<String>,
pub mime_type: Option<String>,
pub uploaded_at: Option<DateTime>,
}Expand description
Represents a file attached to an invoice
Fields§
§id: Option<String>Read only The Square-assigned ID of the attachment. per day.
filename: Option<String>Read only The file name of the attachment, which is displayed on the invoice.
description: Option<String>Read only The description of the attachment, which is displayed on the invoice. This field maps to the seller-defined Message field.
filesize: Option<i32>Read only The file size of the attachment in bytes.
hash: Option<String>Read only The MD5 hash that was generated from the file contents.
mime_type: Option<String>Read only The mime type of the attachment. The following mime types are supported: image/gif, image/jpeg, image/png, image/tiff, image/bmp, application/pdf.
uploaded_at: Option<DateTime>Read only The timestamp when the attachment was uploaded, in RFC 3339 format.
Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:
UTC: 2020-01-26T02:25:34Z
Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00
Trait Implementations§
source§impl Clone for InvoiceAttachment
impl Clone for InvoiceAttachment
source§fn clone(&self) -> InvoiceAttachment
fn clone(&self) -> InvoiceAttachment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for InvoiceAttachment
impl Debug for InvoiceAttachment
source§impl Default for InvoiceAttachment
impl Default for InvoiceAttachment
source§fn default() -> InvoiceAttachment
fn default() -> InvoiceAttachment
source§impl<'de> Deserialize<'de> for InvoiceAttachment
impl<'de> Deserialize<'de> for InvoiceAttachment
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 InvoiceAttachment
impl PartialEq for InvoiceAttachment
source§fn eq(&self, other: &InvoiceAttachment) -> bool
fn eq(&self, other: &InvoiceAttachment) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for InvoiceAttachment
impl Serialize for InvoiceAttachment
impl Eq for InvoiceAttachment
impl StructuralPartialEq for InvoiceAttachment
Auto Trait Implementations§
impl RefUnwindSafe for InvoiceAttachment
impl Send for InvoiceAttachment
impl Sync for InvoiceAttachment
impl Unpin for InvoiceAttachment
impl UnwindSafe for InvoiceAttachment
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.