[][src]Struct stripe::CreateFileLink

pub struct CreateFileLink<'a> {
    pub expand: &'a [&'a str],
    pub expires_at: Option<Timestamp>,
    pub file: FileId,
    pub metadata: Option<Metadata>,
}

The parameters for FileLink::create.

Fields

expand: &'a [&'a str]

Specifies which fields in the response should be expanded.

expires_at: Option<Timestamp>

A future timestamp after which the link will no longer be usable.

file: FileId

The ID of the file.

The file's purpose must be one of the following: business_icon, business_logo, customer_signature, dispute_evidence, finance_report_run, pci_document, sigma_scheduled_query, or tax_document_user_upload.

metadata: Option<Metadata>

Set of key-value pairs that you can attach to an object.

This can be useful for storing additional information about the object in a structured format.

Methods

impl<'a> CreateFileLink<'a>[src]

pub fn new(file: FileId) -> Self[src]

Trait Implementations

impl<'a> Clone for CreateFileLink<'a>[src]

impl<'a> Debug for CreateFileLink<'a>[src]

impl<'a> Serialize for CreateFileLink<'a>[src]

Auto Trait Implementations

impl<'a> Unpin for CreateFileLink<'a>

impl<'a> Sync for CreateFileLink<'a>

impl<'a> Send for CreateFileLink<'a>

impl<'a> UnwindSafe for CreateFileLink<'a>

impl<'a> RefUnwindSafe for CreateFileLink<'a>

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[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