[][src]Struct stripe::File

pub struct File {
    pub id: FileId,
    pub created: 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>,
}

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.

filename: Option<String>

A filename for the file, suitable for saving to a filesystem.

links: List<FileLink>purpose: FilePurpose

The purpose of the file.

Possible values are business_icon, business_logo, customer_signature, dispute_evidence, finance_report_run, identity_document, pci_document, sigma_scheduled_query, or tax_document_user_upload.

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.

Methods

impl File[src]

pub fn list(client: &Client, params: ListFiles) -> Response<List<File>>[src]

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.

pub fn retrieve(client: &Client, id: &FileId, expand: &[&str]) -> Response<File>[src]

Retrieves the details of an existing file object.

Supply the unique file ID from a file, and Stripe will return the corresponding file object.

Trait Implementations

impl Object for File[src]

type Id = FileId

The canonical id type for this object.

impl Clone for File[src]

impl Debug for File[src]

impl Serialize for File[src]

impl<'de> Deserialize<'de> for File[src]

Auto Trait Implementations

impl Send for File

impl Unpin for File

impl Sync for File

impl UnwindSafe for File

impl RefUnwindSafe for File

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Same<T> for T

type Output = T

Should always be Self