#[non_exhaustive]pub struct CommentFilter {
pub and: Option<Vec<CommentFilter>>,
pub or: Option<Vec<CommentFilter>>,
pub id: Option<IdComparator>,
pub body: Option<StringComparator>,
pub user: Option<UserFilter>,
pub issue: Option<Box<IssueFilter>>,
pub created_at: Option<DateComparator>,
}Expand description
Filter for comments (CommentFilter input).
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.and: Option<Vec<CommentFilter>>All sub-filters must match.
or: Option<Vec<CommentFilter>>At least one sub-filter must match.
id: Option<IdComparator>Filter by comment ID.
body: Option<StringComparator>Filter by comment body.
user: Option<UserFilter>Filter by author.
issue: Option<Box<IssueFilter>>Filter by parent issue.
created_at: Option<DateComparator>Filter by creation time.
Implementations§
Source§impl CommentFilter
impl CommentFilter
Sourcepub fn builder() -> CommentFilterBuilder
pub fn builder() -> CommentFilterBuilder
Create an instance of CommentFilter using the builder syntax
Trait Implementations§
Source§impl Clone for CommentFilter
impl Clone for CommentFilter
Source§fn clone(&self) -> CommentFilter
fn clone(&self) -> CommentFilter
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 CommentFilter
impl Debug for CommentFilter
Source§impl Default for CommentFilter
impl Default for CommentFilter
Source§fn default() -> CommentFilter
fn default() -> CommentFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommentFilter
impl RefUnwindSafe for CommentFilter
impl Send for CommentFilter
impl Sync for CommentFilter
impl Unpin for CommentFilter
impl UnsafeUnpin for CommentFilter
impl UnwindSafe for CommentFilter
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