#[non_exhaustive]pub struct MemoryApplyInput {Show 15 fields
pub org: Option<String>,
pub namespace: Option<String>,
pub agent: Option<String>,
pub user_id: Option<String>,
pub session_id: Option<String>,
pub run_id: Option<String>,
pub target: ApplyTarget,
pub action: MemoryApplyInputAction,
pub reason: String,
pub limit: Option<Option<Integer>>,
pub dry_run: Option<bool>,
pub expire: Option<Option<ApplyExpire>>,
pub lock: Option<Option<ApplyLock>>,
pub label: Option<Option<ApplyLabel>>,
pub demote: Option<Option<ApplyDemote>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.org: Option<String>§namespace: Option<String>§agent: Option<String>§user_id: Option<String>§session_id: Option<String>§run_id: Option<String>§target: ApplyTarget§action: MemoryApplyInputAction§reason: String§limit: Option<Option<Integer>>§dry_run: Option<bool>§expire: Option<Option<ApplyExpire>>§lock: Option<Option<ApplyLock>>§label: Option<Option<ApplyLabel>>§demote: Option<Option<ApplyDemote>>Implementations§
Source§impl MemoryApplyInput
impl MemoryApplyInput
pub fn new( target: ApplyTarget, action: MemoryApplyInputAction, reason: impl Into<String>, ) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn agent(self, agent: impl Into<String>) -> Self
pub fn user_id(self, user_id: impl Into<String>) -> Self
pub fn session_id(self, session_id: impl Into<String>) -> Self
pub fn run_id(self, run_id: impl Into<String>) -> Self
pub fn limit(self, limit: impl Into<Integer>) -> Self
pub fn limit_null(self) -> Self
pub fn dry_run(self, dry_run: bool) -> Self
pub fn expire(self, expire: ApplyExpire) -> Self
pub fn expire_null(self) -> Self
pub fn lock(self, lock: ApplyLock) -> Self
pub fn lock_null(self) -> Self
pub fn label(self, label: ApplyLabel) -> Self
pub fn label_null(self) -> Self
pub fn demote(self, demote: ApplyDemote) -> Self
pub fn demote_null(self) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<MemoryApplyOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for MemoryApplyInput
impl Clone for MemoryApplyInput
Source§impl Debug for MemoryApplyInput
impl Debug for MemoryApplyInput
Source§impl<'de> Deserialize<'de> for MemoryApplyInput
impl<'de> Deserialize<'de> for MemoryApplyInput
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
Source§impl PartialEq for MemoryApplyInput
impl PartialEq for MemoryApplyInput
Source§impl Serialize for MemoryApplyInput
impl Serialize for MemoryApplyInput
impl StructuralPartialEq for MemoryApplyInput
Auto Trait Implementations§
impl Forget for MemoryApplyInput
impl Freeze for MemoryApplyInput
impl Move for MemoryApplyInput
impl RefUnwindSafe for MemoryApplyInput
impl Send for MemoryApplyInput
impl Sync for MemoryApplyInput
impl Unpin for MemoryApplyInput
impl UnsafeUnpin for MemoryApplyInput
impl UnwindSafe for MemoryApplyInput
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