#[non_exhaustive]pub struct MemoryDemonstrateInput {
pub org: Option<String>,
pub namespace: Option<String>,
pub agent: Option<String>,
pub query: String,
pub k: Option<Integer>,
pub example_tag: Option<String>,
pub label_prefix: Option<String>,
pub namespace_scope: Option<MemoryDemonstrateInputNamespaceScope>,
pub min_margin: Option<f64>,
pub max_block_chars: Option<Integer>,
}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>§agent: Option<String>§query: String§k: Option<Integer>§example_tag: Option<String>§label_prefix: Option<String>§namespace_scope: Option<MemoryDemonstrateInputNamespaceScope>§min_margin: Option<f64>§max_block_chars: Option<Integer>Implementations§
Source§impl MemoryDemonstrateInput
impl MemoryDemonstrateInput
pub fn new(query: impl Into<String>) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn agent(self, agent: impl Into<String>) -> Self
pub fn k(self, k: impl Into<Integer>) -> Self
pub fn example_tag(self, example_tag: impl Into<String>) -> Self
pub fn label_prefix(self, label_prefix: impl Into<String>) -> Self
pub fn namespace_scope( self, namespace_scope: MemoryDemonstrateInputNamespaceScope, ) -> Self
pub fn min_margin(self, min_margin: f64) -> Self
pub fn max_block_chars(self, max_block_chars: impl Into<Integer>) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<MemoryDemonstrateOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for MemoryDemonstrateInput
impl Clone for MemoryDemonstrateInput
Source§impl Debug for MemoryDemonstrateInput
impl Debug for MemoryDemonstrateInput
Source§impl<'de> Deserialize<'de> for MemoryDemonstrateInput
impl<'de> Deserialize<'de> for MemoryDemonstrateInput
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 MemoryDemonstrateInput
impl PartialEq for MemoryDemonstrateInput
Source§impl Serialize for MemoryDemonstrateInput
impl Serialize for MemoryDemonstrateInput
impl StructuralPartialEq for MemoryDemonstrateInput
Auto Trait Implementations§
impl Forget for MemoryDemonstrateInput
impl Freeze for MemoryDemonstrateInput
impl Move for MemoryDemonstrateInput
impl RefUnwindSafe for MemoryDemonstrateInput
impl Send for MemoryDemonstrateInput
impl Sync for MemoryDemonstrateInput
impl Unpin for MemoryDemonstrateInput
impl UnsafeUnpin for MemoryDemonstrateInput
impl UnwindSafe for MemoryDemonstrateInput
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