pub struct LifecycleService;Implementations§
Source§impl LifecycleService
impl LifecycleService
pub fn new() -> Self
pub fn load_workbench( self, config_path: &Path, ) -> Result<LifecycleWorkbenchSnapshot>
pub fn apply_action( self, config_path: &Path, record_id: &str, action: LifecycleAction, ) -> Result<LifecycleWriteResult>
pub fn apply_action_with_metadata( self, config_path: &Path, record_id: &str, action: LifecycleAction, metadata: TransitionMetadata, ) -> Result<LifecycleWriteResult>
pub fn record_manual( self, config_path: &Path, request: RecordMemoryRequest, ) -> Result<LifecycleWriteResult>
pub fn propose_ai( self, config_path: &Path, request: ProposeMemoryRequest, ) -> Result<LifecycleWriteResult>
pub fn get_record( self, config_path: &Path, record_id: &str, ) -> Result<Option<LedgerEntry>>
pub fn get_history( self, config_path: &Path, record_id: &str, ) -> Result<Vec<LedgerEntry>>
Trait Implementations§
Source§impl Clone for LifecycleService
impl Clone for LifecycleService
Source§fn clone(&self) -> LifecycleService
fn clone(&self) -> LifecycleService
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 LifecycleService
impl Debug for LifecycleService
Source§impl Default for LifecycleService
impl Default for LifecycleService
Source§fn default() -> LifecycleService
fn default() -> LifecycleService
Returns the “default value” for a type. Read more
impl Copy for LifecycleService
Auto Trait Implementations§
impl Freeze for LifecycleService
impl RefUnwindSafe for LifecycleService
impl Send for LifecycleService
impl Sync for LifecycleService
impl Unpin for LifecycleService
impl UnsafeUnpin for LifecycleService
impl UnwindSafe for LifecycleService
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