pub enum RepairTarget {
Memory {
source_id: String,
scope: RepairScope,
},
MemoryEntityLink {
memory_id: String,
entity_id: String,
scope: RepairScope,
},
MemoryEntityExtraction {
memory_id: String,
step: RepairEnrichmentStep,
entity_ids: Vec<String>,
scope: RepairScope,
},
Tag {
source: String,
source_id: String,
tag: String,
scope: RepairScope,
},
PageLink {
source_page_id: String,
label_key: String,
scope: RepairScope,
},
Page {
page_id: String,
scope: RepairScope,
},
PageProjection {
page_id: String,
scope: RepairScope,
},
}Variants§
Implementations§
Source§impl RepairTarget
impl RepairTarget
pub fn memory( source_id: String, scope: RepairScope, ) -> Result<Self, RepairContractError>
pub fn memory_entity_link( memory_id: String, entity_id: String, scope: RepairScope, ) -> Result<Self, RepairContractError>
pub fn memory_entity_extraction( memory_id: String, step: RepairEnrichmentStep, entity_ids: Vec<String>, scope: RepairScope, ) -> Result<Self, RepairContractError>
pub fn tag( source: String, source_id: String, tag: String, ) -> Result<Self, RepairContractError>
pub fn page_link( source_page_id: String, label_key: String, scope: RepairScope, ) -> Result<Self, RepairContractError>
pub fn page_projection( page_id: String, scope: RepairScope, ) -> Result<Self, RepairContractError>
pub fn page( page_id: String, scope: RepairScope, ) -> Result<Self, RepairContractError>
pub fn memory_source_id(&self) -> &str
pub fn scope(&self) -> &RepairScope
Trait Implementations§
Source§impl Clone for RepairTarget
impl Clone for RepairTarget
Source§fn clone(&self) -> RepairTarget
fn clone(&self) -> RepairTarget
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 RepairTarget
impl Debug for RepairTarget
Source§impl<'de> Deserialize<'de> for RepairTarget
impl<'de> Deserialize<'de> for RepairTarget
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 RepairTarget
Source§impl PartialEq for RepairTarget
impl PartialEq for RepairTarget
Source§impl Serialize for RepairTarget
impl Serialize for RepairTarget
impl StructuralPartialEq for RepairTarget
Auto Trait Implementations§
impl Freeze for RepairTarget
impl RefUnwindSafe for RepairTarget
impl Send for RepairTarget
impl Sync for RepairTarget
impl Unpin for RepairTarget
impl UnsafeUnpin for RepairTarget
impl UnwindSafe for RepairTarget
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