slackline/api/users/set_photo
This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.
Setters for the optional arguments of
users.setPhoto.
Each setter takes the call that users.set_photo returns and sets one
argument:
users.set_photo()
|> set_photo.crop_w(100)
Values
pub fn crop_w(
call: slackline.Call(users.SetPhoto, r),
crop_w: Int,
) -> slackline.Call(users.SetPhoto, r)
Width and height of the square crop box.
pub fn crop_x(
call: slackline.Call(users.SetPhoto, r),
crop_x: Int,
) -> slackline.Call(users.SetPhoto, r)
X coordinate of the top-left corner of the crop box.
pub fn crop_y(
call: slackline.Call(users.SetPhoto, r),
crop_y: Int,
) -> slackline.Call(users.SetPhoto, r)
Y coordinate of the top-left corner of the crop box.
pub fn image(
call: slackline.Call(users.SetPhoto, r),
image: slackline.FileUpload,
) -> slackline.Call(users.SetPhoto, r)
The new profile photo.