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.

Retrieves the details of an existing file object.

Supply the unique file ID from a file, and Stripe will return the corresponding file object. To access file contents, see the File Upload Guide.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

The canonical id type for this object.

The id of the object.

The object’s type, typically represented in wire format as the object property.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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