pub struct ShareLink {
pub id: ShareLinkId,
pub slug: String,
pub created: DateTime<Utc>,
pub document: DocumentId,
pub expiration: DateTime<Utc>,
pub file_version: ShareLinkFileVersion,
}Expand description
A share link.
Fields§
§id: ShareLinkIdUnique identifier of the share link.
slug: StringSlug of the share link.
created: DateTime<Utc>When the share link was created.
document: DocumentIdDocument of the share link.
expiration: DateTime<Utc>When the share link expires.
file_version: ShareLinkFileVersionFile version of the share link.
Implementations§
Sourcepub fn url(&self, client: &PaperlessClient) -> String
pub fn url(&self, client: &PaperlessClient) -> String
Returns the full URL of the share link.
Trait Implementations§
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more