Struct stripe::FileLink [−][src]
pub struct FileLink {
pub id: FileLinkId,
pub created: Timestamp,
pub expired: bool,
pub expires_at: Option<Box<Timestamp>>,
pub file: Expandable<File>,
pub livemode: bool,
pub metadata: Metadata,
pub url: Option<Box<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<Box<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<Box<String>>
The publicly accessible URL to download the file.
Implementations
Returns a list of file links.
Creates a new file link object.
Retrieves the file link with the given ID.
pub 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
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for FileLink
impl UnwindSafe for FileLink
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more