pub struct ListReportsByUserBuilder {
limit: Option<Option<u32>>,
offset: Option<Option<u32>>,
category: Option<Option<ReportCategory>>,
object_id: Option<Option<Uuid>>,
reason_id: Option<Option<Uuid>>,
status: Option<Option<ReportStatus>>,
order: Option<Option<ReportSortOrder>>,
includes: Option<Vec<ReferenceExpansionResource>>,
/* private fields */
}
Expand description
Builder for ListReportsByUser
.
Fields§
§limit: Option<Option<u32>>
§offset: Option<Option<u32>>
§category: Option<Option<ReportCategory>>
§object_id: Option<Option<Uuid>>
§reason_id: Option<Option<Uuid>>
§status: Option<Option<ReportStatus>>
§order: Option<Option<ReportSortOrder>>
§includes: Option<Vec<ReferenceExpansionResource>>
Implementations§
Source§impl ListReportsByUserBuilder
impl ListReportsByUserBuilder
pub fn limit<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn offset<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn category<VALUE: Into<ReportCategory>>( &mut self, value: VALUE, ) -> &mut Self
pub fn object_id<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
pub fn reason_id<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
pub fn status<VALUE: Into<ReportStatus>>(&mut self, value: VALUE) -> &mut Self
pub fn order<VALUE: Into<ReportSortOrder>>(&mut self, value: VALUE) -> &mut Self
pub fn includes<VALUE: Into<Vec<ReferenceExpansionResource>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn include<VALUE>(&mut self, item: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<ListReportsByUser, BuilderError>
pub fn build(&self) -> Result<ListReportsByUser, BuilderError>
Sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None
or PhantomData
.
Source§impl ListReportsByUserBuilder
impl ListReportsByUserBuilder
pub async fn send(&self) -> Result<Limited<UserReportsCollection>>
Trait Implementations§
Source§impl Clone for ListReportsByUserBuilder
impl Clone for ListReportsByUserBuilder
Source§fn clone(&self) -> ListReportsByUserBuilder
fn clone(&self) -> ListReportsByUserBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ListReportsByUserBuilder
impl !RefUnwindSafe for ListReportsByUserBuilder
impl !Send for ListReportsByUserBuilder
impl !Sync for ListReportsByUserBuilder
impl Unpin for ListReportsByUserBuilder
impl !UnwindSafe for ListReportsByUserBuilder
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