pub struct EncodeBody {
pub text: String,
pub session: Option<u64>,
pub occurred_at: Option<u64>,
}Expand description
POST /v1/memories body.
Fields§
§text: StringThe text to remember.
session: Option<u64>Optional session id.
occurred_at: Option<u64>Optional event time (unix nanos).
Trait Implementations§
Source§impl Debug for EncodeBody
impl Debug for EncodeBody
Source§impl<'de> Deserialize<'de> for EncodeBody
impl<'de> Deserialize<'de> for EncodeBody
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
Auto Trait Implementations§
impl Freeze for EncodeBody
impl RefUnwindSafe for EncodeBody
impl Send for EncodeBody
impl Sync for EncodeBody
impl Unpin for EncodeBody
impl UnsafeUnpin for EncodeBody
impl UnwindSafe for EncodeBody
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