pub struct ConceptUpsert {
pub id: String,
pub title: String,
pub content: String,
pub embedding_model: Option<String>,
pub valid_from: String,
pub valid_to: String,
pub retired: bool,
}Expand description
A concept assertion: the payload of an upsert.
Fields§
§id: String§title: String§content: String§embedding_model: Option<String>§valid_from: String§valid_to: String§retired: boolImplementations§
Source§impl ConceptUpsert
impl ConceptUpsert
pub fn new(id: impl Into<String>, title: impl Into<String>) -> Self
pub fn content(self, content: impl Into<String>) -> Self
pub fn embedding_model(self, model: impl Into<String>) -> Self
pub fn valid_from(self, ts: impl Into<String>) -> Self
pub fn valid_to(self, ts: impl Into<String>) -> Self
pub fn retired(self, retired: bool) -> Self
Sourcepub fn normalized(self) -> Result<Self>
pub fn normalized(self) -> Result<Self>
Put the timestamps in canonical form (D-029) before they cross the channel.
Trait Implementations§
Source§impl Clone for ConceptUpsert
impl Clone for ConceptUpsert
Source§fn clone(&self) -> ConceptUpsert
fn clone(&self) -> ConceptUpsert
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConceptUpsert
impl Debug for ConceptUpsert
Source§impl PartialEq for ConceptUpsert
impl PartialEq for ConceptUpsert
impl StructuralPartialEq for ConceptUpsert
Auto Trait Implementations§
impl Freeze for ConceptUpsert
impl RefUnwindSafe for ConceptUpsert
impl Send for ConceptUpsert
impl Sync for ConceptUpsert
impl Unpin for ConceptUpsert
impl UnsafeUnpin for ConceptUpsert
impl UnwindSafe for ConceptUpsert
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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