pub struct SlackApiFilesListPaging {
pub count: Option<u32>,
pub total: Option<u32>,
pub page: Option<u32>,
pub pages: Option<u32>,
}Fields§
§count: Option<u32>§total: Option<u32>§page: Option<u32>§pages: Option<u32>Implementations§
Source§impl SlackApiFilesListPaging
impl SlackApiFilesListPaging
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackApiFilesListPaging from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn reset_count(&mut self) -> &mut Self
pub fn reset_count(&mut self) -> &mut Self
Sets count to None.
Sourcepub fn mopt_count(&mut self, value: Option<u32>) -> &mut Self
pub fn mopt_count(&mut self, value: Option<u32>) -> &mut Self
Sets count to the given Option.
Sourcepub fn with_count(self, value: u32) -> Self
pub fn with_count(self, value: u32) -> Self
Returns self with count set to Some(value).
Sourcepub fn without_count(self) -> Self
pub fn without_count(self) -> Self
Returns self with count set to None.
Sourcepub fn opt_count(self, value: Option<u32>) -> Self
pub fn opt_count(self, value: Option<u32>) -> Self
Returns self with count set to the given Option.
Sourcepub fn reset_total(&mut self) -> &mut Self
pub fn reset_total(&mut self) -> &mut Self
Sets total to None.
Sourcepub fn mopt_total(&mut self, value: Option<u32>) -> &mut Self
pub fn mopt_total(&mut self, value: Option<u32>) -> &mut Self
Sets total to the given Option.
Sourcepub fn with_total(self, value: u32) -> Self
pub fn with_total(self, value: u32) -> Self
Returns self with total set to Some(value).
Sourcepub fn without_total(self) -> Self
pub fn without_total(self) -> Self
Returns self with total set to None.
Sourcepub fn opt_total(self, value: Option<u32>) -> Self
pub fn opt_total(self, value: Option<u32>) -> Self
Returns self with total set to the given Option.
Sourcepub fn reset_page(&mut self) -> &mut Self
pub fn reset_page(&mut self) -> &mut Self
Sets page to None.
Sourcepub fn without_page(self) -> Self
pub fn without_page(self) -> Self
Returns self with page set to None.
Sourcepub fn opt_page(self, value: Option<u32>) -> Self
pub fn opt_page(self, value: Option<u32>) -> Self
Returns self with page set to the given Option.
Sourcepub fn reset_pages(&mut self) -> &mut Self
pub fn reset_pages(&mut self) -> &mut Self
Sets pages to None.
Sourcepub fn mopt_pages(&mut self, value: Option<u32>) -> &mut Self
pub fn mopt_pages(&mut self, value: Option<u32>) -> &mut Self
Sets pages to the given Option.
Sourcepub fn with_pages(self, value: u32) -> Self
pub fn with_pages(self, value: u32) -> Self
Returns self with pages set to Some(value).
Sourcepub fn without_pages(self) -> Self
pub fn without_pages(self) -> Self
Returns self with pages set to None.
Trait Implementations§
Source§impl Clone for SlackApiFilesListPaging
impl Clone for SlackApiFilesListPaging
Source§impl Debug for SlackApiFilesListPaging
impl Debug for SlackApiFilesListPaging
Source§impl<'de> Deserialize<'de> for SlackApiFilesListPaging
impl<'de> Deserialize<'de> for SlackApiFilesListPaging
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SlackApiFilesListPagingInit> for SlackApiFilesListPaging
impl From<SlackApiFilesListPagingInit> for SlackApiFilesListPaging
Source§fn from(value: SlackApiFilesListPagingInit) -> Self
fn from(value: SlackApiFilesListPagingInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackApiFilesListPaging
impl PartialEq for SlackApiFilesListPaging
Source§impl Serialize for SlackApiFilesListPaging
impl Serialize for SlackApiFilesListPaging
impl StructuralPartialEq for SlackApiFilesListPaging
Auto Trait Implementations§
impl Freeze for SlackApiFilesListPaging
impl RefUnwindSafe for SlackApiFilesListPaging
impl Send for SlackApiFilesListPaging
impl Sync for SlackApiFilesListPaging
impl Unpin for SlackApiFilesListPaging
impl UnsafeUnpin for SlackApiFilesListPaging
impl UnwindSafe for SlackApiFilesListPaging
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