pub struct SubmitObservationRequest {
pub run_id: String,
pub key: String,
pub payload: Option<Struct>,
pub target_truth_id: Option<String>,
pub idempotency_key: String,
}Expand description
SubmitObservationRequest records a human or system observation for a running context. Observations enter the truth pipeline and are not authoritative facts.
Fields§
§run_id: String§key: StringTarget semantic context key for the observation.
payload: Option<Struct>Structured observation payload.
target_truth_id: Option<String>Optional semantic target the observation is intended to inform.
idempotency_key: StringIdempotency key for replay safety.
Implementations§
Source§impl SubmitObservationRequest
impl SubmitObservationRequest
Sourcepub fn target_truth_id(&self) -> &str
pub fn target_truth_id(&self) -> &str
Returns the value of target_truth_id, or the default value if target_truth_id is unset.
Trait Implementations§
Source§impl Clone for SubmitObservationRequest
impl Clone for SubmitObservationRequest
Source§fn clone(&self) -> SubmitObservationRequest
fn clone(&self) -> SubmitObservationRequest
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 SubmitObservationRequest
impl Debug for SubmitObservationRequest
Source§impl Default for SubmitObservationRequest
impl Default for SubmitObservationRequest
Source§impl Message for SubmitObservationRequest
impl Message for SubmitObservationRequest
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 SubmitObservationRequest
impl PartialEq for SubmitObservationRequest
Source§fn eq(&self, other: &SubmitObservationRequest) -> bool
fn eq(&self, other: &SubmitObservationRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubmitObservationRequest
Auto Trait Implementations§
impl Freeze for SubmitObservationRequest
impl RefUnwindSafe for SubmitObservationRequest
impl Send for SubmitObservationRequest
impl Sync for SubmitObservationRequest
impl Unpin for SubmitObservationRequest
impl UnsafeUnpin for SubmitObservationRequest
impl UnwindSafe for SubmitObservationRequest
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