pub struct ThreadMetadata {Show 20 fields
pub name: String,
pub target_thread: Option<String>,
pub parent_thread: Option<String>,
pub task: Option<String>,
pub thread_mode: String,
pub thread_state: String,
pub freshness: String,
pub base_state: Vec<u8>,
pub base_root: Vec<u8>,
pub current_state: Option<Vec<u8>>,
pub merged_state: Option<Vec<u8>>,
pub changed_paths: Vec<String>,
pub impact_categories: Vec<String>,
pub heavy_impact_paths: Vec<String>,
pub promotion_suggested: bool,
pub verification_summary: Option<ThreadVerificationSummary>,
pub confidence_summary: Option<ThreadConfidenceSummary>,
pub integration_policy_result: Option<ThreadIntegrationPolicy>,
pub created_at: Option<Timestamp>,
pub updated_at: Option<Timestamp>,
}Fields§
§name: String§target_thread: Option<String>§parent_thread: Option<String>§task: Option<String>§thread_mode: String§thread_state: String§freshness: String§base_state: Vec<u8>§base_root: Vec<u8>§current_state: Option<Vec<u8>>§merged_state: Option<Vec<u8>>§changed_paths: Vec<String>§impact_categories: Vec<String>§heavy_impact_paths: Vec<String>§promotion_suggested: bool§verification_summary: Option<ThreadVerificationSummary>§confidence_summary: Option<ThreadConfidenceSummary>§integration_policy_result: Option<ThreadIntegrationPolicy>§created_at: Option<Timestamp>§updated_at: Option<Timestamp>Implementations§
Source§impl ThreadMetadata
impl ThreadMetadata
Sourcepub fn target_thread(&self) -> &str
pub fn target_thread(&self) -> &str
Returns the value of target_thread, or the default value if target_thread is unset.
Sourcepub fn parent_thread(&self) -> &str
pub fn parent_thread(&self) -> &str
Returns the value of parent_thread, or the default value if parent_thread is unset.
Sourcepub fn current_state(&self) -> &[u8] ⓘ
pub fn current_state(&self) -> &[u8] ⓘ
Returns the value of current_state, or the default value if current_state is unset.
Sourcepub fn merged_state(&self) -> &[u8] ⓘ
pub fn merged_state(&self) -> &[u8] ⓘ
Returns the value of merged_state, or the default value if merged_state is unset.
Trait Implementations§
Source§impl Clone for ThreadMetadata
impl Clone for ThreadMetadata
Source§fn clone(&self) -> ThreadMetadata
fn clone(&self) -> ThreadMetadata
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 ThreadMetadata
impl Debug for ThreadMetadata
Source§impl Default for ThreadMetadata
impl Default for ThreadMetadata
Source§impl Message for ThreadMetadata
impl Message for ThreadMetadata
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 ThreadMetadata
impl PartialEq for ThreadMetadata
Source§fn eq(&self, other: &ThreadMetadata) -> bool
fn eq(&self, other: &ThreadMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ThreadMetadata
Auto Trait Implementations§
impl Freeze for ThreadMetadata
impl RefUnwindSafe for ThreadMetadata
impl Send for ThreadMetadata
impl Sync for ThreadMetadata
impl Unpin for ThreadMetadata
impl UnsafeUnpin for ThreadMetadata
impl UnwindSafe for ThreadMetadata
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