pub struct MemoryOperationPlan {
pub op: MemoryLifecycleOp,
pub state_key: Option<String>,
pub target_memory_id: Option<i64>,
pub superseded_ids: Vec<i64>,
pub conflicting_ids: Vec<i64>,
pub noop_reason: Option<String>,
pub defer_reason: Option<String>,
pub planner_version: &'static str,
pub reason: String,
}Fields§
§op: MemoryLifecycleOp§state_key: Option<String>§target_memory_id: Option<i64>§superseded_ids: Vec<i64>§conflicting_ids: Vec<i64>§noop_reason: Option<String>§defer_reason: Option<String>§planner_version: &'static str§reason: StringImplementations§
Source§impl MemoryOperationPlan
impl MemoryOperationPlan
pub fn new( op: MemoryLifecycleOp, state_key: Option<String>, reason: impl Into<String>, ) -> Self
pub fn with_target_memory_id(self, memory_id: Option<i64>) -> Self
pub fn with_superseded_ids(self, superseded_ids: Vec<i64>) -> Self
pub fn with_conflicting_ids(self, conflicting_ids: Vec<i64>) -> Self
pub fn with_noop_reason(self, reason: impl Into<String>) -> Self
pub fn with_defer_reason(self, reason: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for MemoryOperationPlan
impl Clone for MemoryOperationPlan
Source§fn clone(&self) -> MemoryOperationPlan
fn clone(&self) -> MemoryOperationPlan
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 MemoryOperationPlan
impl Debug for MemoryOperationPlan
Source§impl PartialEq for MemoryOperationPlan
impl PartialEq for MemoryOperationPlan
impl StructuralPartialEq for MemoryOperationPlan
Auto Trait Implementations§
impl Freeze for MemoryOperationPlan
impl RefUnwindSafe for MemoryOperationPlan
impl Send for MemoryOperationPlan
impl Sync for MemoryOperationPlan
impl Unpin for MemoryOperationPlan
impl UnsafeUnpin for MemoryOperationPlan
impl UnwindSafe for MemoryOperationPlan
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
Converts
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> ⓘ
Converts
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