#[non_exhaustive]pub struct ListProjectsRequest {
pub filter: Option<ProjectFilter>,
pub first: Option<i32>,
pub after: Option<String>,
pub include_archived: Option<bool>,
pub order_by: Option<PaginationOrderBy>,
}Expand description
Request parameters for ProjectsService::list /
ProjectsService::list_stream. Serialized directly as the operation’s
GraphQL variables.
use linear_api::ProjectFilter;
use linear_api::projects::ListProjectsRequest;
let request = ListProjectsRequest::builder()
.filter(ProjectFilter::builder().build())
.first(25)
.build();
assert_eq!(request.first, Some(25));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<ProjectFilter>Filter to apply.
first: Option<i32>Page size (server default 50).
after: Option<String>Cursor to resume after (from
PageInfo::end_cursor).
include_archived: Option<bool>Whether to include archived projects (server default false).
order_by: Option<PaginationOrderBy>Pagination sort order (server default createdAt).
Implementations§
Source§impl ListProjectsRequest
impl ListProjectsRequest
Sourcepub fn builder() -> ListProjectsRequestBuilder
pub fn builder() -> ListProjectsRequestBuilder
Create an instance of ListProjectsRequest using the builder syntax
Trait Implementations§
Source§impl Clone for ListProjectsRequest
impl Clone for ListProjectsRequest
Source§fn clone(&self) -> ListProjectsRequest
fn clone(&self) -> ListProjectsRequest
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 ListProjectsRequest
impl Debug for ListProjectsRequest
Source§impl Default for ListProjectsRequest
impl Default for ListProjectsRequest
Source§fn default() -> ListProjectsRequest
fn default() -> ListProjectsRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ListProjectsRequest
impl RefUnwindSafe for ListProjectsRequest
impl Send for ListProjectsRequest
impl Sync for ListProjectsRequest
impl Unpin for ListProjectsRequest
impl UnsafeUnpin for ListProjectsRequest
impl UnwindSafe for ListProjectsRequest
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