#[non_exhaustive]pub struct MemoryRecordWriteInput {
pub org: Option<String>,
pub namespace: Option<String>,
pub schema_name: String,
pub memory_key: Option<String>,
pub memory_id: Option<Option<String>>,
pub agent: Option<String>,
pub user_id: Option<String>,
pub session_id: Option<String>,
pub fields: HashMap<String, RecordFieldInput>,
pub valid_at: Option<Option<String>>,
pub valid_to: Option<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.org: Option<String>§namespace: Option<String>§schema_name: String§memory_key: Option<String>§memory_id: Option<Option<String>>§agent: Option<String>§user_id: Option<String>§session_id: Option<String>§fields: HashMap<String, RecordFieldInput>§valid_at: Option<Option<String>>§valid_to: Option<Option<String>>Implementations§
Source§impl MemoryRecordWriteInput
impl MemoryRecordWriteInput
pub fn new( schema_name: impl Into<String>, fields: HashMap<String, RecordFieldInput>, ) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn memory_key(self, memory_key: impl Into<String>) -> Self
pub fn memory_id(self, memory_id: impl Into<String>) -> Self
pub fn memory_id_null(self) -> 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 valid_at(self, valid_at: impl Into<String>) -> Self
pub fn valid_at_null(self) -> Self
pub fn valid_to(self, valid_to: impl Into<String>) -> Self
pub fn valid_to_null(self) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<MemoryRecordWriteOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for MemoryRecordWriteInput
impl Clone for MemoryRecordWriteInput
Source§impl Debug for MemoryRecordWriteInput
impl Debug for MemoryRecordWriteInput
Source§impl<'de> Deserialize<'de> for MemoryRecordWriteInput
impl<'de> Deserialize<'de> for MemoryRecordWriteInput
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 MemoryRecordWriteInput
impl PartialEq for MemoryRecordWriteInput
Source§impl Serialize for MemoryRecordWriteInput
impl Serialize for MemoryRecordWriteInput
impl StructuralPartialEq for MemoryRecordWriteInput
Auto Trait Implementations§
impl Forget for MemoryRecordWriteInput
impl Freeze for MemoryRecordWriteInput
impl Move for MemoryRecordWriteInput
impl RefUnwindSafe for MemoryRecordWriteInput
impl Send for MemoryRecordWriteInput
impl Sync for MemoryRecordWriteInput
impl Unpin for MemoryRecordWriteInput
impl UnsafeUnpin for MemoryRecordWriteInput
impl UnwindSafe for MemoryRecordWriteInput
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