#[non_exhaustive]pub struct SetRequest {
pub memory_key: String,
pub value: Value,
pub memory_type: Option<String>,
pub tags: Option<Vec<String>>,
pub ttl_seconds: Option<i64>,
pub confidence: Option<f64>,
pub if_match_sha256: Option<String>,
}Expand description
A memory write. Unset options use the server’s defaults.
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.memory_key: String§value: Value§memory_type: Option<String>§ttl_seconds: Option<i64>§confidence: Option<f64>§if_match_sha256: Option<String>Implementations§
Source§impl SetRequest
impl SetRequest
Source§impl SetRequest
impl SetRequest
pub fn memory_type(self, value: impl Into<String>) -> Self
pub fn ttl_seconds(self, value: i64) -> Self
pub fn confidence(self, value: f64) -> Self
pub fn if_match_sha256(self, value: impl Into<String>) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<SetResponse>, CallFailure>
Trait Implementations§
Source§impl Debug for SetRequest
impl Debug for SetRequest
Auto Trait Implementations§
impl Forget for SetRequest
impl Freeze for SetRequest
impl Move for SetRequest
impl RefUnwindSafe for SetRequest
impl Send for SetRequest
impl Sync for SetRequest
impl Unpin for SetRequest
impl UnsafeUnpin for SetRequest
impl UnwindSafe for SetRequest
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