pub struct MemoryTransitionCandidateV1 {
pub schema_version: String,
pub candidate_id: String,
pub source_artifacts: Vec<SourceArtifactV1>,
pub required_source_spans: Vec<SourceSpanRefV1>,
pub assertions: Vec<AssertionDraftV1>,
pub operation: TransitionOperation,
pub preserved_active_fact_ids: Vec<String>,
}Expand description
Candidate proposed by extraction or an operator before canonical admission.
Fields§
§schema_version: String§candidate_id: String§source_artifacts: Vec<SourceArtifactV1>§required_source_spans: Vec<SourceSpanRefV1>§assertions: Vec<AssertionDraftV1>§operation: TransitionOperation§preserved_active_fact_ids: Vec<String>Current assertions in affected namespaces that the proposal explicitly retains.
Implementations§
Source§impl MemoryTransitionCandidateV1
impl MemoryTransitionCandidateV1
pub fn new( candidate_id: impl Into<String>, source_artifacts: Vec<SourceArtifactV1>, required_source_spans: Vec<SourceSpanRefV1>, assertions: Vec<AssertionDraftV1>, operation: TransitionOperation, preserved_active_fact_ids: Vec<String>, ) -> Result<Self, String>
pub fn validate(&self) -> Result<(), String>
Trait Implementations§
Source§impl Clone for MemoryTransitionCandidateV1
impl Clone for MemoryTransitionCandidateV1
Source§fn clone(&self) -> MemoryTransitionCandidateV1
fn clone(&self) -> MemoryTransitionCandidateV1
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 MemoryTransitionCandidateV1
impl Debug for MemoryTransitionCandidateV1
Source§impl<'de> Deserialize<'de> for MemoryTransitionCandidateV1
impl<'de> Deserialize<'de> for MemoryTransitionCandidateV1
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 MemoryTransitionCandidateV1
impl StructuralPartialEq for MemoryTransitionCandidateV1
Auto Trait Implementations§
impl Freeze for MemoryTransitionCandidateV1
impl RefUnwindSafe for MemoryTransitionCandidateV1
impl Send for MemoryTransitionCandidateV1
impl Sync for MemoryTransitionCandidateV1
impl Unpin for MemoryTransitionCandidateV1
impl UnsafeUnpin for MemoryTransitionCandidateV1
impl UnwindSafe for MemoryTransitionCandidateV1
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.