#[non_exhaustive]pub struct ListLabelsRequest {
pub filter: Option<IssueLabelFilter>,
pub first: Option<i32>,
pub after: Option<String>,
}Expand description
Variables for LabelsService::list.
§Example
use linear_api::labels::ListLabelsRequest;
let client = linear_api::LinearClient::from_env()?;
let page = client
.labels()
.list(ListLabelsRequest::builder().first(10).build())
.await?;Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.filter: Option<IssueLabelFilter>Filter the returned labels.
first: Option<i32>Page size (server default 50). Page size multiplies query complexity; prefer modest values.
after: Option<String>Cursor to paginate forward from (a previous page’s end_cursor).
Implementations§
Source§impl ListLabelsRequest
impl ListLabelsRequest
Sourcepub fn builder() -> ListLabelsRequestBuilder
pub fn builder() -> ListLabelsRequestBuilder
Create an instance of ListLabelsRequest using the builder syntax
Trait Implementations§
Source§impl Clone for ListLabelsRequest
impl Clone for ListLabelsRequest
Source§fn clone(&self) -> ListLabelsRequest
fn clone(&self) -> ListLabelsRequest
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 ListLabelsRequest
impl Debug for ListLabelsRequest
Source§impl Default for ListLabelsRequest
impl Default for ListLabelsRequest
Source§fn default() -> ListLabelsRequest
fn default() -> ListLabelsRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ListLabelsRequest
impl RefUnwindSafe for ListLabelsRequest
impl Send for ListLabelsRequest
impl Sync for ListLabelsRequest
impl Unpin for ListLabelsRequest
impl UnsafeUnpin for ListLabelsRequest
impl UnwindSafe for ListLabelsRequest
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