pub struct File {
pub id: FileId,
pub created: Timestamp,
pub expires_at: Option<Timestamp>,
pub filename: Option<String>,
pub links: List<FileLink>,
pub purpose: FilePurpose,
pub size: u64,
pub title: Option<String>,
pub type_: Option<String>,
pub url: Option<String>,
}
Expand description
The resource representing a Stripe “File”.
For more details see https://stripe.com/docs/api/files/object
Fields§
§id: FileId
Unique identifier for the object.
created: Timestamp
Time at which the object was created.
Measured in seconds since the Unix epoch.
expires_at: Option<Timestamp>
The file expires and isn’t available at this time in epoch seconds.
filename: Option<String>
The suitable name for saving the file to a filesystem.
links: List<FileLink>
A list of file links that point at this file.
purpose: FilePurpose
The purpose of the uploaded file.
size: u64
The size of the file object in bytes.
title: Option<String>
A suitable title for the document.
type_: Option<String>
The returned file type (for example, csv
, pdf
, jpg
, or png
).
url: Option<String>
Use your live secret API key to download the file from this URL.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for File
impl<'de> Deserialize<'de> for File
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
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
Mutably borrows from an owned value. Read more