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>,
}Expand description
The resource representing a Stripe “FileLink”.
For more details see https://stripe.com/docs/api/file_links/object
Fields§
§id: FileLinkIdUnique identifier for the object.
created: TimestampTime at which the object was created.
Measured in seconds since the Unix epoch.
expired: boolWhether 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: boolHas the value true if the object exists in live mode or the value false if the object exists in test mode.
metadata: MetadataSet 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.
Implementations§
source§impl FileLink
 
impl FileLink
sourcepub fn list(
    client: &Client,
    params: &ListFileLinks<'_>
) -> Response<List<FileLink>>
 
pub fn list( client: &Client, params: &ListFileLinks<'_> ) -> Response<List<FileLink>>
Returns a list of file links.
sourcepub fn create(client: &Client, params: CreateFileLink<'_>) -> Response<FileLink>
 
pub fn create(client: &Client, params: CreateFileLink<'_>) -> Response<FileLink>
Creates a new file link object.
sourcepub fn retrieve(
    client: &Client,
    id: &FileLinkId,
    expand: &[&str]
) -> Response<FileLink>
 
pub fn retrieve( client: &Client, id: &FileLinkId, expand: &[&str] ) -> Response<FileLink>
Retrieves the file link with the given ID.
sourcepub fn update(
    client: &Client,
    id: &FileLinkId,
    params: UpdateFileLink<'_>
) -> Response<FileLink>
 
pub fn update( client: &Client, id: &FileLinkId, params: UpdateFileLink<'_> ) -> Response<FileLink>
Updates an existing file link object.
Expired links can no longer be updated.