pub struct ProposalEntry {Show 16 fields
pub slug: String,
pub fork_id: String,
pub target_id: String,
pub status: ProposalChange,
pub renamed_from: Option<String>,
pub title: Option<String>,
pub entity_type: Option<String>,
pub content_hash: Option<String>,
pub fork_delta: Option<VersionDelta>,
pub referrers: Vec<Referrer>,
pub anchors: Vec<AnchorRow>,
pub precheck: Precheck,
pub conflict: Option<Conflict>,
pub re_proposal: Vec<ReProposalMark>,
pub base_body: Option<String>,
pub fork_body: Option<String>,
}Expand description
One entity the fork touched.
Fields§
§slug: StringThe entity’s slug: the part of the id after the mem name, the key the two mems share.
fork_id: StringThe entity’s id in the fork (<fork>--<slug>).
target_id: StringThe entity’s id in the target (<target>--<slug>).
status: ProposalChangeWhat the fork did.
renamed_from: Option<String>For a renamed entity: the slug it had at the base.
title: Option<String>§entity_type: Option<String>§content_hash: Option<String>The hash of the proposed version as it would land in the target
(the fork’s body with its self-links under the target’s name),
computed with the engine’s date stamps (created_date,
last_modified) left out, so the same body proposed again from
another fork hashes the same; absent for a deletion. The
proposal record stores the same hash, so a rejected body is
recognised when a later fork proposes it again. Not the
entity’s _hash (the file hash, stamps included).
fork_delta: Option<VersionDelta>How the fork’s version differs from the base (absent for an added or deleted entity, and when a side does not parse).
referrers: Vec<Referrer>The target’s referrers of this entity: entities in the target or in other mems holding an edge to it (the fork’s own excluded).
anchors: Vec<AnchorRow>The anchor rows the fork’s entity rests on, read from the fork’s sidecar under the fork’s ids; no observation is fetched.
precheck: PrecheckThe mechanics precheck through the target’s write gate.
conflict: Option<Conflict>Present when the target moved the same entity since the ancestor.
re_proposal: Vec<ReProposalMark>Present when the target’s proposal record holds a rejection of the same content hash or the same id.
base_body: Option<String>The base’s body, with mem qualifiers normalised to the fork’s name (absent for an added entity).
fork_body: Option<String>The fork’s body, the proposed version (absent for a deletion).
Trait Implementations§
Source§impl Clone for ProposalEntry
impl Clone for ProposalEntry
Source§impl Debug for ProposalEntry
impl Debug for ProposalEntry
Source§impl<'de> Deserialize<'de> for ProposalEntry
impl<'de> Deserialize<'de> for ProposalEntry
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>,
Source§impl PartialEq for ProposalEntry
impl PartialEq for ProposalEntry
Source§impl Serialize for ProposalEntry
impl Serialize for ProposalEntry
impl StructuralPartialEq for ProposalEntry
Auto Trait Implementations§
impl Freeze for ProposalEntry
impl RefUnwindSafe for ProposalEntry
impl Send for ProposalEntry
impl Sync for ProposalEntry
impl Unpin for ProposalEntry
impl UnsafeUnpin for ProposalEntry
impl UnwindSafe for ProposalEntry
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
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>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> Fruit for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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> ⓘ
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> ⓘ
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