pub struct FileLink {
pub created: Timestamp,
pub expired: bool,
pub expires_at: Option<Timestamp>,
pub file: Expandable<File>,
pub id: FileLinkId,
pub livemode: bool,
pub metadata: HashMap<String, String>,
pub url: Option<String>,
}
Expand description
To share the contents of a File
object with non-Stripe users, you can
create a FileLink
. FileLink
s contain a URL that you can use to
retrieve the contents of the file without authentication.
For more details see <https://stripe.com/docs/api/file_links/object>.
Fields§
§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.
id: FileLinkId
Unique identifier for the object.
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: HashMap<String, String>
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.