pub struct FileVersionDto {Show 19 fields
pub id: FileVersionId,
pub file_id: Uuid,
pub version_number: i32,
pub version_type: VersionType,
pub storage_key: String,
pub storage_backend: String,
pub name: String,
pub mime_type: String,
pub checksum_md5: Option<String>,
pub checksum_sha256: Option<String>,
pub created_by_id: Uuid,
pub change_summary: Option<String>,
pub is_current: bool,
pub restored_from_id: Option<Uuid>,
pub expires_at: Option<DateTime<Utc>>,
pub status: FileVersionStatus,
pub deleted_at: Option<DateTime<Utc>>,
pub size_bytes: i64,
pub metadata: Value,
}Expand description
Data transfer object for FileVersion
This is the public representation of FileVersion for other modules.
Fields§
§id: FileVersionId§file_id: Uuid§version_number: i32§version_type: VersionType§storage_key: String§storage_backend: String§name: String§mime_type: String§checksum_md5: Option<String>§checksum_sha256: Option<String>§created_by_id: Uuid§change_summary: Option<String>§is_current: bool§restored_from_id: Option<Uuid>§expires_at: Option<DateTime<Utc>>§status: FileVersionStatus§deleted_at: Option<DateTime<Utc>>§size_bytes: i64§metadata: ValueTrait Implementations§
Source§impl Clone for FileVersionDto
impl Clone for FileVersionDto
Source§impl Debug for FileVersionDto
impl Debug for FileVersionDto
Source§impl<'de> Deserialize<'de> for FileVersionDto
impl<'de> Deserialize<'de> for FileVersionDto
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§
impl Freeze for FileVersionDto
impl RefUnwindSafe for FileVersionDto
impl Send for FileVersionDto
impl Sync for FileVersionDto
impl Unpin for FileVersionDto
impl UnsafeUnpin for FileVersionDto
impl UnwindSafe for FileVersionDto
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.