#[non_exhaustive]pub struct MemoryImportEvidenceInputEvidenceChunk {
pub session_id: String,
pub chunk_index: Option<Integer>,
pub content: String,
pub content_sha256: Option<String>,
pub agent: Option<String>,
pub user_id: Option<String>,
pub parent_memory_key: Option<String>,
pub memory_keys: Option<Vec<String>>,
pub line_start: Option<Integer>,
pub line_end: Option<Integer>,
pub created_at: Option<String>,
pub source_url: 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.session_id: String§chunk_index: Option<Integer>§content: String§content_sha256: Option<String>§agent: Option<String>§user_id: Option<String>§parent_memory_key: Option<String>§memory_keys: Option<Vec<String>>§line_start: Option<Integer>§line_end: Option<Integer>§created_at: Option<String>§source_url: Option<String>Implementations§
Source§impl MemoryImportEvidenceInputEvidenceChunk
impl MemoryImportEvidenceInputEvidenceChunk
pub fn new(session_id: impl Into<String>, content: impl Into<String>) -> Self
pub fn chunk_index(self, chunk_index: impl Into<Integer>) -> Self
pub fn content_sha256(self, content_sha256: 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 parent_memory_key(self, parent_memory_key: impl Into<String>) -> Self
pub fn memory_keys( self, memory_keys: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn line_start(self, line_start: impl Into<Integer>) -> Self
pub fn line_end(self, line_end: impl Into<Integer>) -> Self
pub fn created_at(self, created_at: impl Into<String>) -> Self
pub fn source_url(self, source_url: impl Into<String>) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MemoryImportEvidenceInputEvidenceChunk
impl<'de> Deserialize<'de> for MemoryImportEvidenceInputEvidenceChunk
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
impl StructuralPartialEq for MemoryImportEvidenceInputEvidenceChunk
Auto Trait Implementations§
impl Forget for MemoryImportEvidenceInputEvidenceChunk
impl Freeze for MemoryImportEvidenceInputEvidenceChunk
impl Move for MemoryImportEvidenceInputEvidenceChunk
impl RefUnwindSafe for MemoryImportEvidenceInputEvidenceChunk
impl Send for MemoryImportEvidenceInputEvidenceChunk
impl Sync for MemoryImportEvidenceInputEvidenceChunk
impl Unpin for MemoryImportEvidenceInputEvidenceChunk
impl UnsafeUnpin for MemoryImportEvidenceInputEvidenceChunk
impl UnwindSafe for MemoryImportEvidenceInputEvidenceChunk
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