pub struct Attachable {Show 17 fields
pub id: Option<String>,
pub sync_token: Option<String>,
pub meta_data: Option<MetaData>,
pub file_name: Option<String>,
pub file_path: Option<PathBuf>,
pub note: Option<String>,
pub category: Option<AttachmentCategory>,
pub content_type: Option<String>,
pub place_name: Option<String>,
pub attachable_ref: Option<Vec<AttachableRef>>,
pub long: Option<String>,
pub tag: Option<String>,
pub lat: Option<String>,
pub file_access_uri: Option<String>,
pub size: Option<f64>,
pub thumbnail_file_access_uri: Option<String>,
pub temp_download_uri: Option<String>,
}Expand description
Attachable
Represents a file attachment or note that can be linked to other QuickBooks entities (for example: Invoice, Bill, Customer).
Notes:
- With the “builder” feature enabled,
Attachable::new().file(path)setsfile_pathfor upload and derivesfile_nameandcontent_typefrom the path. - This crate models metadata only; HTTP upload logic and file bytes handling should be implemented in your client.
API reference: https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/attachable
Fields§
§id: Option<String>The unique ID of the entity
sync_token: Option<String>The unique sync token of the entity, used for concurrency control
meta_data: Option<MetaData>Metadata about the entity
file_name: Option<String>File name of the attachment
file_path: Option<PathBuf>Filesystem path used during upload (builder feature only); not serialized.
note: Option<String>Private note for the attachment
category: Option<AttachmentCategory>Category of the attachment
content_type: Option<String>Content type of the attachment
place_name: Option<String>§attachable_ref: Option<Vec<AttachableRef>>References to the transaction object to which this attachable file is to be linked
long: Option<String>Longitude of the place where the attachment was taken
tag: Option<String>Tag for the attachment
lat: Option<String>Latitude of the place where the attachment was taken
file_access_uri: Option<String>URI for accessing the file
size: Option<f64>Size of the file in bytes
thumbnail_file_access_uri: Option<String>URI for accessing the thumbnail of the file
temp_download_uri: Option<String>Temporary download URI for the file
Trait Implementations§
Source§impl Clone for Attachable
impl Clone for Attachable
Source§fn clone(&self) -> Attachable
fn clone(&self) -> Attachable
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more