pub struct ShareLinkBundle {
pub id: ShareLinkBundleId,
pub documents: Vec<DocumentId>,
pub file_version: ShareLinkFileVersion,
pub slug: String,
pub created: DateTime<Utc>,
pub built_at: DateTime<Utc>,
pub expiration: DateTime<Utc>,
pub size_bytes: u32,
pub document_count: u32,
pub status: ShareLinkBundleStatus,
}Expand description
A share link bundle.
Fields§
§id: ShareLinkBundleIdUnique identifier of the share link bundle.
documents: Vec<DocumentId>The documents in the bundle.
file_version: ShareLinkFileVersionFile version of the share link.
slug: StringSlug of the bundle.
created: DateTime<Utc>When the bundle was created.
built_at: DateTime<Utc>When the bundle was built.
expiration: DateTime<Utc>When the bundle expires.
size_bytes: u32Size of the bundle in number of bytes.
document_count: u32Number of documents in the bundle.
status: ShareLinkBundleStatusThe status of the bundle.
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 clone(&self) -> ShareLinkBundle
fn clone(&self) -> ShareLinkBundle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§type Id = ShareLinkBundleId
type Id = ShareLinkBundleId
The ID type for this item.
Source§type BaseType = ShareLinkBundle
type BaseType = ShareLinkBundle
The base type for the DTO.
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
Source§type Id = ShareLinkBundleId
type Id = ShareLinkBundleId
The ID type for this item.
Source§type BaseType = ShareLinkBundle
type BaseType = ShareLinkBundle
The base type for the DTO.
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