pub struct ObserveOutcome {
pub path: String,
pub doc_id: String,
pub rev: Option<String>,
pub commit_id: Option<String>,
pub converged: bool,
pub echo: bool,
pub conflicted: bool,
pub dispositions: BTreeMap<String, u64>,
pub old_hash_hex: Option<String>,
pub new_hash_hex: String,
}Expand description
The outcome of observing bytes at a path (§5.4).
Fields§
§path: String§doc_id: String§rev: Option<String>None on an echo.
commit_id: Option<String>None on an echo.
converged: bool§5.4 step 13; true on an echo.
echo: boolThe bytes already matched the stored revision: no commit.
conflicted: boolThe bytes carry git conflict markers.
dispositions: BTreeMap<String, u64>Disposition kind → count over this commit (empty on an echo).
old_hash_hex: Option<String>The prior file_hash (hex), or None when the doc was new or gone.
new_hash_hex: Stringsha256(source) (hex).
Trait Implementations§
Source§impl Clone for ObserveOutcome
impl Clone for ObserveOutcome
Source§fn clone(&self) -> ObserveOutcome
fn clone(&self) -> ObserveOutcome
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 ObserveOutcome
impl Debug for ObserveOutcome
impl Eq for ObserveOutcome
Source§impl PartialEq for ObserveOutcome
impl PartialEq for ObserveOutcome
impl StructuralPartialEq for ObserveOutcome
Auto Trait Implementations§
impl Freeze for ObserveOutcome
impl RefUnwindSafe for ObserveOutcome
impl Send for ObserveOutcome
impl Sync for ObserveOutcome
impl Unpin for ObserveOutcome
impl UnsafeUnpin for ObserveOutcome
impl UnwindSafe for ObserveOutcome
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.