[][src]Struct stripe::FileLink

pub struct FileLink {
    pub id: FileLinkId,
    pub created: Timestamp,
    pub expired: bool,
    pub expires_at: Option<Timestamp>,
    pub file: Expandable<File>,
    pub livemode: bool,
    pub metadata: Metadata,
    pub url: Option<String>,
}

The resource representing a Stripe "FileLink".

For more details see https://stripe.com/docs/api/file_links/object.

Fields

id: FileLinkId

Unique identifier for the object.

created: Timestamp

Time at which the object was created.

Measured in seconds since the Unix epoch.

expired: bool

Whether this link is already expired.

expires_at: Option<Timestamp>

Time at which the link expires.

file: Expandable<File>

The file object this link points to.

livemode: bool

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

metadata: 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.

url: Option<String>

The publicly accessible URL to download the file.

Methods

impl FileLink[src]

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

Returns a list of file links.

pub fn create(client: &Client, params: CreateFileLink) -> Response<FileLink>[src]

Creates a new file link object.

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

Retrieves the file link with the given ID.

pub fn update(
    client: &Client,
    id: &FileLinkId,
    params: UpdateFileLink
) -> Response<FileLink>
[src]

Updates an existing file link object.

Expired links can no longer be updated.

Trait Implementations

impl Object for FileLink[src]

type Id = FileLinkId

The canonical id type for this object.

impl Clone for FileLink[src]

impl Debug for FileLink[src]

impl Serialize for FileLink[src]

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

Auto Trait Implementations

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> 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