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
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.
Implementations
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for FileLink
impl<'de> Deserialize<'de> for FileLink
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for FileLink
impl Send for FileLink
impl Sync for FileLink
impl Unpin for FileLink
impl UnwindSafe for FileLink
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more