#[non_exhaustive]pub struct CommentListRequest {
pub first: Option<i32>,
pub after: Option<String>,
}Expand description
Pagination controls for CommentsService::list_for_issue.
For the “latest N comments” pattern pass first: N; ordering follows
Linear’s default connection order (createdAt).
use linear_api::comments::CommentListRequest;
let req = CommentListRequest::builder().first(5).build();
assert_eq!(req.first, Some(5));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.first: Option<i32>Page size (server default 50). Page size multiplies query complexity; prefer modest values.
after: Option<String>Cursor to resume from — a previous page’s
end_cursor.
Implementations§
Source§impl CommentListRequest
impl CommentListRequest
Sourcepub fn builder() -> CommentListRequestBuilder
pub fn builder() -> CommentListRequestBuilder
Create an instance of CommentListRequest using the builder syntax
Trait Implementations§
Source§impl Clone for CommentListRequest
impl Clone for CommentListRequest
Source§fn clone(&self) -> CommentListRequest
fn clone(&self) -> CommentListRequest
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 CommentListRequest
impl Debug for CommentListRequest
Source§impl Default for CommentListRequest
impl Default for CommentListRequest
Source§fn default() -> CommentListRequest
fn default() -> CommentListRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommentListRequest
impl RefUnwindSafe for CommentListRequest
impl Send for CommentListRequest
impl Sync for CommentListRequest
impl Unpin for CommentListRequest
impl UnsafeUnpin for CommentListRequest
impl UnwindSafe for CommentListRequest
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