#[non_exhaustive]pub struct UsersSetPhotoRequest {
pub crop_w: Option<String>,
pub crop_x: Option<String>,
pub crop_y: Option<String>,
pub image: Option<String>,
}Expand description
Arguments for the Slack Web API method users.setPhoto: Set the user profile photo
Send it with SlackClient::users_set_photo.
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.crop_w: Option<String>Width/height of crop box (always square)
crop_x: Option<String>X coordinate of top-left corner of crop box
crop_y: Option<String>Y coordinate of top-left corner of crop box
image: Option<String>File contents via multipart/form-data.
Implementations§
Trait Implementations§
Source§impl Clone for UsersSetPhotoRequest
impl Clone for UsersSetPhotoRequest
Source§impl Debug for UsersSetPhotoRequest
impl Debug for UsersSetPhotoRequest
Source§impl Default for UsersSetPhotoRequest
impl Default for UsersSetPhotoRequest
Source§impl PartialEq for UsersSetPhotoRequest
impl PartialEq for UsersSetPhotoRequest
Source§impl Serialize for UsersSetPhotoRequest
impl Serialize for UsersSetPhotoRequest
impl StructuralPartialEq for UsersSetPhotoRequest
Auto Trait Implementations§
impl Freeze for UsersSetPhotoRequest
impl RefUnwindSafe for UsersSetPhotoRequest
impl Send for UsersSetPhotoRequest
impl Sync for UsersSetPhotoRequest
impl Unpin for UsersSetPhotoRequest
impl UnsafeUnpin for UsersSetPhotoRequest
impl UnwindSafe for UsersSetPhotoRequest
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