pub struct TransferFileIdentity {
pub path: PathBuf,
pub bytes: u64,
pub sha256: String,
}Expand description
Stable file content identity.
Fields§
§path: PathBufAbsolute path.
bytes: u64File size.
sha256: StringLowercase SHA-256.
Trait Implementations§
Source§impl Clone for TransferFileIdentity
impl Clone for TransferFileIdentity
Source§fn clone(&self) -> TransferFileIdentity
fn clone(&self) -> TransferFileIdentity
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 TransferFileIdentity
impl Debug for TransferFileIdentity
Source§impl<'de> Deserialize<'de> for TransferFileIdentity
impl<'de> Deserialize<'de> for TransferFileIdentity
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§impl PartialEq for TransferFileIdentity
impl PartialEq for TransferFileIdentity
Source§fn eq(&self, other: &TransferFileIdentity) -> bool
fn eq(&self, other: &TransferFileIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TransferFileIdentity
impl Serialize for TransferFileIdentity
impl Eq for TransferFileIdentity
impl StructuralPartialEq for TransferFileIdentity
Auto Trait Implementations§
impl Freeze for TransferFileIdentity
impl RefUnwindSafe for TransferFileIdentity
impl Send for TransferFileIdentity
impl Sync for TransferFileIdentity
impl Unpin for TransferFileIdentity
impl UnsafeUnpin for TransferFileIdentity
impl UnwindSafe for TransferFileIdentity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.