pub struct SnapshotResponse {
pub hash: String,
pub short_hash: String,
pub tree: String,
pub parent: Option<String>,
pub author: String,
pub message: String,
pub timestamp: i64,
pub files_added: usize,
}Fields§
§hash: String§short_hash: String§tree: String§parent: Option<String>§message: String§timestamp: i64§files_added: usizeTrait Implementations§
Source§impl CommandResponse for SnapshotResponse
impl CommandResponse for SnapshotResponse
Source§fn command_name(&self) -> &'static str
fn command_name(&self) -> &'static str
The command name for the response envelope
Source§fn human_readable(&self) -> String
fn human_readable(&self) -> String
Render as human-readable text
Source§fn to_json_output(&self) -> String
fn to_json_output(&self) -> String
Render as JSON (default implementation via serde). Read more
Source§fn to_json_output_pretty(&self) -> String
fn to_json_output_pretty(&self) -> String
Render as indented, human-readable JSON (opt-in via
--pretty).Source§impl Debug for SnapshotResponse
impl Debug for SnapshotResponse
Source§impl<'de> Deserialize<'de> for SnapshotResponse
impl<'de> Deserialize<'de> for SnapshotResponse
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 SnapshotResponse
impl RefUnwindSafe for SnapshotResponse
impl Send for SnapshotResponse
impl Sync for SnapshotResponse
impl Unpin for SnapshotResponse
impl UnsafeUnpin for SnapshotResponse
impl UnwindSafe for SnapshotResponse
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