pub struct Change {
pub sidecar: u8,
pub op: Op,
pub path: String,
pub blob: Option<String>,
pub size: Option<u64>,
pub origin: Option<String>,
pub note: Option<String>,
pub meta: BTreeMap<String, String>,
}Expand description
One change to one path, as the log records it.
Fields§
§sidecar: u8The format, 1.
op: OpWhat happened.
path: StringThe project-relative path, /-separated.
blob: Option<String>SHA-256 of the bytes, lower-case hex, for a put.
size: Option<u64>Length of the bytes, for a put.
origin: Option<String>The child’s checkpoint origin, for a checkpoint.
note: Option<String>The child’s signed checkpoint note, as text, for a checkpoint.
meta: BTreeMap<String, String>Whatever the caller records with the change: an actor, a job, a reason. Keys and values are stored as given.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Change
impl<'de> Deserialize<'de> for Change
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
impl Eq for Change
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
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