pub struct SlackApiFilesListResponse {
pub files: Vec<SlackFile>,
pub paging: Option<SlackApiFilesListPaging>,
}Fields§
§files: Vec<SlackFile>§paging: Option<SlackApiFilesListPaging>Implementations§
Source§impl SlackApiFilesListResponse
impl SlackApiFilesListResponse
Sourcepub fn new(files: Vec<SlackFile>) -> Self
pub fn new(files: Vec<SlackFile>) -> Self
Creates a new SlackApiFilesListResponse from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn with_files(self, value: Vec<SlackFile>) -> Self
pub fn with_files(self, value: Vec<SlackFile>) -> Self
Returns self with files set to value.
Sourcepub fn paging(&mut self, value: SlackApiFilesListPaging) -> &mut Self
pub fn paging(&mut self, value: SlackApiFilesListPaging) -> &mut Self
Sets paging to Some(value).
Sourcepub fn reset_paging(&mut self) -> &mut Self
pub fn reset_paging(&mut self) -> &mut Self
Sets paging to None.
Sourcepub fn mopt_paging(
&mut self,
value: Option<SlackApiFilesListPaging>,
) -> &mut Self
pub fn mopt_paging( &mut self, value: Option<SlackApiFilesListPaging>, ) -> &mut Self
Sets paging to the given Option.
Sourcepub fn with_paging(self, value: SlackApiFilesListPaging) -> Self
pub fn with_paging(self, value: SlackApiFilesListPaging) -> Self
Returns self with paging set to Some(value).
Sourcepub fn without_paging(self) -> Self
pub fn without_paging(self) -> Self
Returns self with paging set to None.
Sourcepub fn opt_paging(self, value: Option<SlackApiFilesListPaging>) -> Self
pub fn opt_paging(self, value: Option<SlackApiFilesListPaging>) -> Self
Returns self with paging set to the given Option.
Trait Implementations§
Source§impl Clone for SlackApiFilesListResponse
impl Clone for SlackApiFilesListResponse
Source§impl Debug for SlackApiFilesListResponse
impl Debug for SlackApiFilesListResponse
Source§impl<'de> Deserialize<'de> for SlackApiFilesListResponse
impl<'de> Deserialize<'de> for SlackApiFilesListResponse
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<SlackApiFilesListResponseInit> for SlackApiFilesListResponse
impl From<SlackApiFilesListResponseInit> for SlackApiFilesListResponse
Source§fn from(value: SlackApiFilesListResponseInit) -> Self
fn from(value: SlackApiFilesListResponseInit) -> Self
Converts to this type from the input type.
Source§impl SlackApiScrollableResponse for SlackApiFilesListResponse
impl SlackApiScrollableResponse for SlackApiFilesListResponse
type CursorType = u32
type ResponseItemType = SlackFile
fn next_cursor(&self) -> Option<Self::CursorType>
fn scrollable_items<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::ResponseItemType> + 'a>
impl StructuralPartialEq for SlackApiFilesListResponse
Auto Trait Implementations§
impl Freeze for SlackApiFilesListResponse
impl RefUnwindSafe for SlackApiFilesListResponse
impl Send for SlackApiFilesListResponse
impl Sync for SlackApiFilesListResponse
impl Unpin for SlackApiFilesListResponse
impl UnsafeUnpin for SlackApiFilesListResponse
impl UnwindSafe for SlackApiFilesListResponse
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