pub struct DreamOp {Show 14 fields
pub id: String,
pub dream_id: String,
pub seq: i64,
pub op: String,
pub filename: String,
pub merged_from: String,
pub base_hash: String,
pub base_text: String,
pub new_text: String,
pub reason: String,
pub evidence: String,
pub flags: String,
pub applied_version_id: String,
pub merged_bases: String,
}Expand description
One operation of a dream’s proposal, on one file. base_hash is the head version’s content hash the pass read, which
apply compares with the head at apply time (§2.6); base_text and new_text are kept with the record so the diff
and a revert do not depend on the memory’s own version history. evidence and flags are JSON (§6).
Fields§
§id: String§dream_id: String§seq: i64§op: String§filename: String§merged_from: String§base_hash: String§base_text: String§new_text: String§reason: String§evidence: String§flags: String§applied_version_id: StringThe memory version that applying this operation wrote; empty until it is applied.
merged_bases: StringWhat a merge read of the files it merges away, as JSON [{"file","hash","text"}] in the order of merged_from
([] for any other operation): apply checks each is still at that hash, and a revert puts that text back.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DreamOp
impl<'de> Deserialize<'de> for DreamOp
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 From<DreamOp> for DreamOpView
impl From<DreamOp> for DreamOpView
impl StructuralPartialEq for DreamOp
Auto Trait Implementations§
impl Freeze for DreamOp
impl RefUnwindSafe for DreamOp
impl Send for DreamOp
impl Sync for DreamOp
impl Unpin for DreamOp
impl UnsafeUnpin for DreamOp
impl UnwindSafe for DreamOp
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more