#[non_exhaustive]pub struct ListTeamsRequest {
pub filter: Option<TeamFilter>,
pub first: Option<i32>,
pub after: Option<String>,
pub include_archived: Option<bool>,
}Expand description
Parameters for TeamsService::list. Serialized directly as the
TeamList query variables.
§Example
use linear_api::{StringComparator, TeamFilter};
use linear_api::workspace::ListTeamsRequest;
let req = ListTeamsRequest::builder()
.filter(
TeamFilter::builder()
.key(StringComparator::builder().eq("ENG".to_string()).build())
.build(),
)
.first(10)
.build();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<TeamFilter>Filter the returned teams.
first: Option<i32>Page size (server default 50).
after: Option<String>Cursor to paginate after (a previous page’s end_cursor).
include_archived: Option<bool>Include archived teams (server default false).
Implementations§
Source§impl ListTeamsRequest
impl ListTeamsRequest
Sourcepub fn builder() -> ListTeamsRequestBuilder
pub fn builder() -> ListTeamsRequestBuilder
Create an instance of ListTeamsRequest using the builder syntax
Trait Implementations§
Source§impl Clone for ListTeamsRequest
impl Clone for ListTeamsRequest
Source§fn clone(&self) -> ListTeamsRequest
fn clone(&self) -> ListTeamsRequest
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 ListTeamsRequest
impl Debug for ListTeamsRequest
Source§impl Default for ListTeamsRequest
impl Default for ListTeamsRequest
Source§fn default() -> ListTeamsRequest
fn default() -> ListTeamsRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ListTeamsRequest
impl RefUnwindSafe for ListTeamsRequest
impl Send for ListTeamsRequest
impl Sync for ListTeamsRequest
impl Unpin for ListTeamsRequest
impl UnsafeUnpin for ListTeamsRequest
impl UnwindSafe for ListTeamsRequest
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