pub struct ThreadListItem {
pub thread_id: String,
pub name: String,
pub thread_state: i32,
pub last_activity_at: Option<Timestamp>,
pub target_thread_id: Option<String>,
pub thread_health: Option<String>,
}Expand description
Compact status and identity projection for thread-list rows. Fetch the full ThreadSummary through GetThread when detail is needed.
Fields§
§thread_id: StringStable opaque server-assigned identity.
name: StringRenameable human-facing thread ref/title.
thread_state: i32§last_activity_at: Option<Timestamp>Grounds LAST_ACTIVITY_DESC ordering and renders row recency.
target_thread_id: Option<String>Stable identity of the thread’s target, when one is configured.
thread_health: Option<String>Compact server-computed status/health rollup for the row.
Implementations§
Source§impl ThreadListItem
impl ThreadListItem
Sourcepub fn thread_state(&self) -> Kind
pub fn thread_state(&self) -> Kind
Returns the enum value of thread_state, or the default if the field is set to an invalid enum value.
Sourcepub fn set_thread_state(&mut self, value: Kind)
pub fn set_thread_state(&mut self, value: Kind)
Sets thread_state to the provided enum value.
Sourcepub fn target_thread_id(&self) -> &str
pub fn target_thread_id(&self) -> &str
Returns the value of target_thread_id, or the default value if target_thread_id is unset.
Sourcepub fn thread_health(&self) -> &str
pub fn thread_health(&self) -> &str
Returns the value of thread_health, or the default value if thread_health is unset.
Trait Implementations§
Source§impl Clone for ThreadListItem
impl Clone for ThreadListItem
Source§fn clone(&self) -> ThreadListItem
fn clone(&self) -> ThreadListItem
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 ThreadListItem
impl Debug for ThreadListItem
Source§impl Default for ThreadListItem
impl Default for ThreadListItem
impl Eq for ThreadListItem
Source§impl Hash for ThreadListItem
impl Hash for ThreadListItem
Source§impl Message for ThreadListItem
impl Message for ThreadListItem
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 ThreadListItem
impl PartialEq for ThreadListItem
impl StructuralPartialEq for ThreadListItem
Auto Trait Implementations§
impl Freeze for ThreadListItem
impl RefUnwindSafe for ThreadListItem
impl Send for ThreadListItem
impl Sync for ThreadListItem
impl Unpin for ThreadListItem
impl UnsafeUnpin for ThreadListItem
impl UnwindSafe for ThreadListItem
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