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 time at which the file expires and is no longer available in epoch seconds.
filename: Option<String>
A filename for the file, suitable for saving 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 in bytes of the file object.
title: Option<String>
A user friendly title for the document.
type_: Option<String>
The type of the file returned (e.g., csv
, pdf
, jpg
, or png
).
url: Option<String>
The URL from which the file can be downloaded using your live secret API key.
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