Struct stripe::File [−][src]
pub struct File {
pub id: FileId,
pub created: Timestamp,
pub expires_at: Option<Box<Timestamp>>,
pub filename: Option<Box<String>>,
pub links: List<FileLink>,
pub purpose: FilePurpose,
pub size: u64,
pub title: Option<Box<String>>,
pub type_: Option<Box<String>>,
pub url: Option<Box<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<Box<Timestamp>>
The time at which the file expires and is no longer available in epoch seconds.
filename: Option<Box<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<Box<String>>
A user friendly title for the document.
type_: Option<Box<String>>
The type of the file returned (e.g., csv
, pdf
, jpg
, or png
).
url: Option<Box<String>>
The URL from which the file can be downloaded using your live secret API key.
Implementations
Returns a list of the files that your account has access to.
The files are returned sorted by creation date, with the most recently created files appearing first.
Trait Implementations
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 UnwindSafe for File
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more