pub struct UpdateKnowledgeRequest {
pub knowledge_id: String,
pub title: Option<String>,
pub content: Option<String>,
pub source_url: Option<String>,
pub author: Option<String>,
pub collection: Option<String>,
pub chunk_size: Option<i32>,
pub chunk_overlap: Option<i32>,
pub metadata: HashMap<String, String>,
pub entities: Vec<ToolEntityInput>,
pub relations: Vec<ToolRelationInput>,
}Fields§
§knowledge_id: String§title: Option<String>§content: Option<String>§source_url: Option<String>§collection: Option<String>§chunk_size: Option<i32>§chunk_overlap: Option<i32>§metadata: HashMap<String, String>§entities: Vec<ToolEntityInput>§relations: Vec<ToolRelationInput>Implementations§
Source§impl UpdateKnowledgeRequest
impl UpdateKnowledgeRequest
Sourcepub fn title(&self) -> &str
pub fn title(&self) -> &str
Returns the value of title, or the default value if title is unset.
Sourcepub fn content(&self) -> &str
pub fn content(&self) -> &str
Returns the value of content, or the default value if content is unset.
Sourcepub fn source_url(&self) -> &str
pub fn source_url(&self) -> &str
Returns the value of source_url, or the default value if source_url is unset.
Returns the value of author, or the default value if author is unset.
Sourcepub fn collection(&self) -> &str
pub fn collection(&self) -> &str
Returns the value of collection, or the default value if collection is unset.
Sourcepub fn chunk_size(&self) -> i32
pub fn chunk_size(&self) -> i32
Returns the value of chunk_size, or the default value if chunk_size is unset.
Sourcepub fn chunk_overlap(&self) -> i32
pub fn chunk_overlap(&self) -> i32
Returns the value of chunk_overlap, or the default value if chunk_overlap is unset.
Trait Implementations§
Source§impl Clone for UpdateKnowledgeRequest
impl Clone for UpdateKnowledgeRequest
Source§impl Debug for UpdateKnowledgeRequest
impl Debug for UpdateKnowledgeRequest
Source§impl Default for UpdateKnowledgeRequest
impl Default for UpdateKnowledgeRequest
Source§impl Message for UpdateKnowledgeRequest
impl Message for UpdateKnowledgeRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for UpdateKnowledgeRequest
impl PartialEq for UpdateKnowledgeRequest
impl StructuralPartialEq for UpdateKnowledgeRequest
Auto Trait Implementations§
impl Freeze for UpdateKnowledgeRequest
impl RefUnwindSafe for UpdateKnowledgeRequest
impl Send for UpdateKnowledgeRequest
impl Sync for UpdateKnowledgeRequest
impl Unpin for UpdateKnowledgeRequest
impl UnsafeUnpin for UpdateKnowledgeRequest
impl UnwindSafe for UpdateKnowledgeRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request