Struct distant_protocol::ChangeDetails
source · pub struct ChangeDetails {
pub attribute: Option<ChangeDetailsAttribute>,
pub renamed: Option<PathBuf>,
pub timestamp: Option<u64>,
pub extra: Option<String>,
}
Expand description
Optional details about a change.
Fields§
§attribute: Option<ChangeDetailsAttribute>
Clarity on type of attribute change that occurred (for kind == attribute).
renamed: Option<PathBuf>
When event is renaming, this will be populated with the resulting name when we know both the old and new names (for kind == rename)
timestamp: Option<u64>
Unix timestamps (in seconds) related to the change. For other platforms, their timestamps are converted into a Unix timestamp format.
- For create events, this represents the
ctime
field from stat (or equivalent on other platforms). - For modify events, this represents the
mtime
field from stat (or equivalent on other platforms).
extra: Option<String>
Optional information about the change that is typically platform-specific.
Implementations§
Trait Implementations§
source§impl Clone for ChangeDetails
impl Clone for ChangeDetails
source§fn clone(&self) -> ChangeDetails
fn clone(&self) -> ChangeDetails
Returns a copy 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 ChangeDetails
impl Debug for ChangeDetails
source§impl Default for ChangeDetails
impl Default for ChangeDetails
source§fn default() -> ChangeDetails
fn default() -> ChangeDetails
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ChangeDetailswhere
ChangeDetails: Default,
impl<'de> Deserialize<'de> for ChangeDetailswhere ChangeDetails: Default,
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<ChangeDetails> for ChangeDetails
impl PartialEq<ChangeDetails> for ChangeDetails
source§fn eq(&self, other: &ChangeDetails) -> bool
fn eq(&self, other: &ChangeDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ChangeDetails
impl Serialize for ChangeDetails
impl Eq for ChangeDetails
impl StructuralEq for ChangeDetails
impl StructuralPartialEq for ChangeDetails
Auto Trait Implementations§
impl RefUnwindSafe for ChangeDetails
impl Send for ChangeDetails
impl Sync for ChangeDetails
impl Unpin for ChangeDetails
impl UnwindSafe for ChangeDetails
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