pub struct FileVersion {
pub href: String,
pub revision_id: String,
pub last_modified: Option<String>,
pub content_length: Option<u64>,
pub etag: Option<String>,
}Expand description
A past revision of a Nextcloud file.
Returned by VersionsClient::list.
Contains the WebDAV path to the revision, the revision identifier (timestamp),
and standard WebDAV properties such as last modification time, size in bytes,
and ETag.
Fields§
§href: StringServer-relative WebDAV path to this revision.
revision_id: StringIdentifier of this revision, typically a Unix timestamp.
last_modified: Option<String>Last modified timestamp as an HTTP-date string (e.g. Fri, 01 Jan 2021 00:00:00 GMT), if reported.
content_length: Option<u64>Size of the revision in bytes, if reported.
etag: Option<String>Entity tag of this revision, if reported.
Implementations§
Source§impl FileVersion
impl FileVersion
Sourcepub fn new(
href: impl Into<String>,
revision_id: impl Into<String>,
last_modified: Option<String>,
content_length: Option<u64>,
etag: Option<String>,
) -> Self
pub fn new( href: impl Into<String>, revision_id: impl Into<String>, last_modified: Option<String>, content_length: Option<u64>, etag: Option<String>, ) -> Self
Creates a new FileVersion.
Sourcepub fn revision_id(&self) -> &str
pub fn revision_id(&self) -> &str
Revision identifier.
Sourcepub fn last_modified(&self) -> Option<&str>
pub fn last_modified(&self) -> Option<&str>
Modification timestamp as an HTTP-date string, if available.
Sourcepub fn content_length(&self) -> Option<u64>
pub fn content_length(&self) -> Option<u64>
Byte length of the revision content, if available.
Trait Implementations§
Source§impl Clone for FileVersion
impl Clone for FileVersion
Source§impl Debug for FileVersion
impl Debug for FileVersion
Source§impl Display for FileVersion
impl Display for FileVersion
impl Eq for FileVersion
Source§impl PartialEq for FileVersion
impl PartialEq for FileVersion
impl StructuralPartialEq for FileVersion
Auto Trait Implementations§
impl Freeze for FileVersion
impl RefUnwindSafe for FileVersion
impl Send for FileVersion
impl Sync for FileVersion
impl Unpin for FileVersion
impl UnsafeUnpin for FileVersion
impl UnwindSafe for FileVersion
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