#[non_exhaustive]pub struct MemoryCopyToInput {
pub from_org: String,
pub from_namespace: String,
pub memory_key: String,
pub from_agent: Option<String>,
pub from_user_id: Option<String>,
pub from_session_id: Option<String>,
pub to_namespace: String,
pub target_key: Option<Option<String>>,
pub target_agent: Option<String>,
pub rationale: Option<String>,
}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.from_org: String§from_namespace: String§memory_key: String§from_agent: Option<String>§from_user_id: Option<String>§from_session_id: Option<String>§to_namespace: String§target_key: Option<Option<String>>§target_agent: Option<String>§rationale: Option<String>Implementations§
Source§impl MemoryCopyToInput
impl MemoryCopyToInput
pub fn new( from_org: impl Into<String>, from_namespace: impl Into<String>, memory_key: impl Into<String>, to_namespace: impl Into<String>, ) -> Self
pub fn from_agent(self, from_agent: impl Into<String>) -> Self
pub fn from_user_id(self, from_user_id: impl Into<String>) -> Self
pub fn from_session_id(self, from_session_id: impl Into<String>) -> Self
pub fn target_key(self, target_key: impl Into<String>) -> Self
pub fn target_key_null(self) -> Self
pub fn target_agent(self, target_agent: impl Into<String>) -> Self
pub fn rationale(self, rationale: impl Into<String>) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<MemoryCopyToOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for MemoryCopyToInput
impl Clone for MemoryCopyToInput
Source§impl Debug for MemoryCopyToInput
impl Debug for MemoryCopyToInput
Source§impl<'de> Deserialize<'de> for MemoryCopyToInput
impl<'de> Deserialize<'de> for MemoryCopyToInput
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 MemoryCopyToInput
impl PartialEq for MemoryCopyToInput
Source§impl Serialize for MemoryCopyToInput
impl Serialize for MemoryCopyToInput
impl StructuralPartialEq for MemoryCopyToInput
Auto Trait Implementations§
impl Forget for MemoryCopyToInput
impl Freeze for MemoryCopyToInput
impl Move for MemoryCopyToInput
impl RefUnwindSafe for MemoryCopyToInput
impl Send for MemoryCopyToInput
impl Sync for MemoryCopyToInput
impl Unpin for MemoryCopyToInput
impl UnsafeUnpin for MemoryCopyToInput
impl UnwindSafe for MemoryCopyToInput
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