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: FileLinkId
Unique identifier for the object.
created: Timestamp
Time at which the object was created.
Measured in seconds since the Unix epoch.
expired: bool
Returns if the link is already expired.
expires_at: Option<Timestamp>
Time that 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.
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.
Trait Implementations§
source§impl<'de> Deserialize<'de> for FileLink
impl<'de> Deserialize<'de> for FileLink
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for FileLink
impl RefUnwindSafe for FileLink
impl Send for FileLink
impl Sync for FileLink
impl Unpin for FileLink
impl UnwindSafe for FileLink
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)