pub struct CreateUserRequest<'a> {
pub first_name: Option<String>,
pub last_name: Option<String>,
pub email: Option<String>,
pub timezone: Option<String>,
pub has_access_to_all_future_projects: Option<bool>,
pub is_contractor: Option<bool>,
pub is_active: Option<bool>,
pub weekly_capacity: Option<i64>,
pub default_hourly_rate: Option<f64>,
pub cost_rate: Option<f64>,
pub roles: Option<Vec<String>>,
pub access_roles: Option<Vec<String>>,
/* private fields */
}Expand description
Create this with the associated client method.
That method takes required values as arguments. Set optional values using builder methods on this struct.
Fields§
§first_name: Option<String>§last_name: Option<String>§email: Option<String>§timezone: Option<String>§has_access_to_all_future_projects: Option<bool>§is_contractor: Option<bool>§is_active: Option<bool>§weekly_capacity: Option<i64>§default_hourly_rate: Option<f64>§cost_rate: Option<f64>§roles: Option<Vec<String>>§access_roles: Option<Vec<String>>Implementations§
Source§impl<'a> CreateUserRequest<'a>
impl<'a> CreateUserRequest<'a>
pub async fn send(self) -> Result<User>
pub fn first_name(self, first_name: &str) -> Self
pub fn last_name(self, last_name: &str) -> Self
pub fn email(self, email: &str) -> Self
pub fn timezone(self, timezone: &str) -> Self
pub fn has_access_to_all_future_projects( self, has_access_to_all_future_projects: bool, ) -> Self
pub fn is_contractor(self, is_contractor: bool) -> Self
pub fn is_active(self, is_active: bool) -> Self
pub fn weekly_capacity(self, weekly_capacity: i64) -> Self
pub fn default_hourly_rate(self, default_hourly_rate: f64) -> Self
pub fn cost_rate(self, cost_rate: f64) -> Self
pub fn roles(self, roles: impl IntoIterator<Item = impl AsRef<str>>) -> Self
pub fn access_roles( self, access_roles: impl IntoIterator<Item = impl AsRef<str>>, ) -> Self
Auto Trait Implementations§
impl<'a> Freeze for CreateUserRequest<'a>
impl<'a> !RefUnwindSafe for CreateUserRequest<'a>
impl<'a> Send for CreateUserRequest<'a>
impl<'a> Sync for CreateUserRequest<'a>
impl<'a> Unpin for CreateUserRequest<'a>
impl<'a> !UnwindSafe for CreateUserRequest<'a>
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