pub struct Transaction {
pub id: Uuid,
pub timestamp: DateTime<Utc>,
pub operation: Operation,
pub project_uuid: Uuid,
pub project_name: String,
pub local_path: String,
pub remote_path: String,
pub size_bytes: u64,
pub status: TransactionStatus,
pub error: Option<String>,
pub duration_secs: Option<f64>,
}Expand description
A single transaction entry in the log.
Fields§
§id: UuidUnique transaction ID.
timestamp: DateTime<Utc>When the transaction was recorded.
operation: OperationWhat operation was performed.
project_uuid: UuidProject UUID (from .project.toml).
project_name: StringProject name.
local_path: StringLocal path.
remote_path: StringRemote path.
size_bytes: u64Size in bytes transferred.
status: TransactionStatusCurrent status.
error: Option<String>Error message if failed.
duration_secs: Option<f64>Duration in seconds.
Implementations§
Trait Implementations§
Source§impl Clone for Transaction
impl Clone for Transaction
Source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
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§impl Debug for Transaction
impl Debug for Transaction
Source§impl<'de> Deserialize<'de> for Transaction
impl<'de> Deserialize<'de> for Transaction
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 Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnsafeUnpin for Transaction
impl UnwindSafe for Transaction
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