pub struct FileTransaction {
pub id: Uuid,
pub operations: Vec<FileOperation>,
pub status: TransactionStatus,
pub created_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
}Expand description
Represents a transaction containing multiple file operations
Fields§
§id: UuidUnique identifier for the transaction
operations: Vec<FileOperation>List of operations in the transaction
status: TransactionStatusCurrent status of the transaction
created_at: DateTime<Utc>When the transaction was created
completed_at: Option<DateTime<Utc>>When the transaction was completed (if applicable)
Trait Implementations§
Source§impl Clone for FileTransaction
impl Clone for FileTransaction
Source§fn clone(&self) -> FileTransaction
fn clone(&self) -> FileTransaction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileTransaction
impl Debug for FileTransaction
Source§impl<'de> Deserialize<'de> for FileTransaction
impl<'de> Deserialize<'de> for FileTransaction
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 FileTransaction
impl RefUnwindSafe for FileTransaction
impl Send for FileTransaction
impl Sync for FileTransaction
impl Unpin for FileTransaction
impl UnwindSafe for FileTransaction
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