pub struct CreateUserRequest<'a> {
pub schemas: Option<Vec<String>>,
pub user_name: Option<String>,
pub active: Option<bool>,
pub external_id: Option<String>,
pub groups: Option<Vec<String>>,
pub locale: Option<String>,
pub name: Option<Value>,
/* 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§
§schemas: Option<Vec<String>>
§user_name: Option<String>
§active: Option<bool>
§external_id: Option<String>
§groups: Option<Vec<String>>
§locale: Option<String>
§name: Option<Value>
Implementations§
Source§impl<'a> CreateUserRequest<'a>
impl<'a> CreateUserRequest<'a>
pub async fn send(self) -> Result<Value>
pub fn schemas(self, schemas: impl IntoIterator<Item = impl AsRef<str>>) -> Self
pub fn user_name(self, user_name: &str) -> Self
pub fn active(self, active: bool) -> Self
pub fn external_id(self, external_id: &str) -> Self
pub fn groups(self, groups: impl IntoIterator<Item = impl AsRef<str>>) -> Self
pub fn locale(self, locale: &str) -> Self
pub fn name(self, name: Value) -> 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