pub struct ListThreadsRequest {
pub repo_path: Option<RepositoryRef>,
pub page_size: u32,
pub page_token: String,
pub states: Vec<i32>,
pub query: String,
pub order: i32,
}Fields§
§repo_path: Option<RepositoryRef>§page_size: u32Zero streams all threads. A positive value streams at most this many threads.
page_token: StringOpaque continuation token returned by ListThreadsPageEnd.
states: Vec<i32>Empty selects all thread lifecycle states.
query: StringFree-text search over thread name/title. Empty disables text filtering.
order: i32UNSPECIFIED is treated as LAST_ACTIVITY_DESC.
Implementations§
Source§impl ListThreadsRequest
impl ListThreadsRequest
Sourcepub fn states(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<Kind>> ⓘ
pub fn states( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<Kind>> ⓘ
Returns an iterator which yields the valid enum values contained in states.
Sourcepub fn push_states(&mut self, value: Kind)
pub fn push_states(&mut self, value: Kind)
Appends the provided enum value to states.
Sourcepub fn order(&self) -> ThreadOrder
pub fn order(&self) -> ThreadOrder
Returns the enum value of order, or the default if the field is set to an invalid enum value.
Sourcepub fn set_order(&mut self, value: ThreadOrder)
pub fn set_order(&mut self, value: ThreadOrder)
Sets order to the provided enum value.
Trait Implementations§
Source§impl Clone for ListThreadsRequest
impl Clone for ListThreadsRequest
Source§fn clone(&self) -> ListThreadsRequest
fn clone(&self) -> ListThreadsRequest
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 ListThreadsRequest
impl Debug for ListThreadsRequest
Source§impl Default for ListThreadsRequest
impl Default for ListThreadsRequest
impl Eq for ListThreadsRequest
Source§impl Hash for ListThreadsRequest
impl Hash for ListThreadsRequest
Source§impl Message for ListThreadsRequest
impl Message for ListThreadsRequest
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 ListThreadsRequest
impl PartialEq for ListThreadsRequest
impl StructuralPartialEq for ListThreadsRequest
Auto Trait Implementations§
impl Freeze for ListThreadsRequest
impl RefUnwindSafe for ListThreadsRequest
impl Send for ListThreadsRequest
impl Sync for ListThreadsRequest
impl Unpin for ListThreadsRequest
impl UnsafeUnpin for ListThreadsRequest
impl UnwindSafe for ListThreadsRequest
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