pub struct AiLearningContext<'a> {
pub graph: &'a Graph,
pub model_ref: String,
pub model_hash: String,
pub recipe: Recipe,
pub recipe_ref: String,
pub recipe_hash: String,
pub seed: u64,
pub created_at: String,
pub authority_config_ref: Option<String>,
pub authority: Option<AuthorityEnvironment>,
pub authority_cases: Vec<AuthorityCase>,
pub policy_info: BTreeMap<String, PolicyInfo>,
}Fields§
§graph: &'a Graph§model_ref: String§model_hash: String§recipe: Recipe§recipe_ref: String§recipe_hash: String§seed: u64§created_at: String§policy_info: BTreeMap<String, PolicyInfo>Implementations§
Source§impl<'a> AiLearningContext<'a>
impl<'a> AiLearningContext<'a>
pub fn build( graph: &'a Graph, model_ref: String, recipe: Recipe, recipe_ref: String, seed_override: Option<u64>, created_at_override: Option<String>, authority: Option<AuthorityEnvironment>, authority_config_ref: Option<String>, ) -> Result<Self, String>
pub fn provenance( &self, source_refs: Vec<String>, generation_method: &str, review_status: &str, ) -> Provenance
Auto Trait Implementations§
impl<'a> Forget for AiLearningContext<'a>
impl<'a> Freeze for AiLearningContext<'a>where
&'a Graph: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<FactSource>: Freeze,
PhantomData<FactTransform>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, FactSource>>: Freeze,
PhantomData<Bucket<String, FactTransform>>: Freeze,
PhantomData<AuthorityPack>: Freeze,
*const ArcInner<Mutex<Vec<AuthorityTrace>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Vec<AuthorityTrace>>>>: Freeze,
PhantomData<AuthorityCase>: Freeze,
*const LeafNode<String, PolicyInfo> is !null: Freeze,
PhantomData<Box<(String, PolicyInfo)>>: Freeze,
impl<'a> Move for AiLearningContext<'a>
impl<'a> RefUnwindSafe for AiLearningContext<'a>where
OnceLock<NormalizedExpression>: RefUnwindSafe,
OnceCell<Regex>: RefUnwindSafe,
NonZero<i32>: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
Mutex<Vec<AuthorityTrace>>: RefUnwindSafe,
impl<'a> Send for AiLearningContext<'a>where
&'a Graph: Send,
RawVecInner: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
RawTable<usize>: Send,
RawTable<(String, Value)>: Send,
Arc<Mutex<Vec<AuthorityTrace>>>: Send,
&'static str: Send,
NodeRef<Owned, String, PolicyInfo, LeafOrInternal>: Send,
BoxRaw<(String, PolicyInfo)>: Send,
impl<'a> Sync for AiLearningContext<'a>where
RawTable<usize>: Sync,
RawVecInner: Sync,
RawTable<(String, Value)>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
BoxRaw<Expression>: Sync,
OnceLock<NormalizedExpression>: Sync,
OnceCell<Regex>: Sync,
BoxRaw<FieldType>: Sync,
NonZero<i32>: Sync,
BoxRaw<TypedValue>: Sync,
RawTable<(ConceptId, ())>: Sync,
Arc<Mutex<Vec<AuthorityTrace>>>: Sync,
NodeRef<Owned, String, PolicyInfo, LeafOrInternal>: Sync,
BoxRaw<(String, PolicyInfo)>: Sync,
impl<'a> Unpin for AiLearningContext<'a>
impl<'a> UnsafeUnpin for AiLearningContext<'a>where
&'a Graph: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<FactSource>: UnsafeUnpin,
PhantomData<FactTransform>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, FactSource>>: UnsafeUnpin,
PhantomData<Bucket<String, FactTransform>>: UnsafeUnpin,
PhantomData<AuthorityPack>: UnsafeUnpin,
*const ArcInner<Mutex<Vec<AuthorityTrace>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Vec<AuthorityTrace>>>>: UnsafeUnpin,
PhantomData<AuthorityCase>: UnsafeUnpin,
*const LeafNode<String, PolicyInfo> is !null: UnsafeUnpin,
PhantomData<Box<(String, PolicyInfo)>>: UnsafeUnpin,
impl<'a> UnwindSafe for AiLearningContext<'a>where
&'a Graph: UnwindSafe,
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
NonNull<u8>: UnwindSafe,
HashMap<String, Value>: UnwindSafe,
Arc<Mutex<Vec<AuthorityTrace>>>: UnwindSafe,
&'static str: UnwindSafe,
BTreeMap<String, PolicyInfo>: UnwindSafe,
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