#[non_exhaustive]pub struct CreateAccountRequest {
pub name: String,
pub description: Option<String>,
pub icon_url: Option<String>,
pub provider_info: Option<Value>,
}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.name: String§description: Option<String>§icon_url: Option<String>§provider_info: Option<Value>Implementations§
Source§impl CreateAccountRequest
impl CreateAccountRequest
Sourcepub fn new(name: impl Into<String>) -> Self
pub fn new(name: impl Into<String>) -> Self
Builds the value from its required fields. Optional fields start unset.
Sourcepub fn with_description(self, value: impl Into<String>) -> Self
pub fn with_description(self, value: impl Into<String>) -> Self
Sets description.
Sourcepub fn with_icon_url(self, value: impl Into<String>) -> Self
pub fn with_icon_url(self, value: impl Into<String>) -> Self
Sets icon_url.
Sourcepub fn with_provider_info(self, value: Value) -> Self
pub fn with_provider_info(self, value: Value) -> Self
Sets provider_info.
Trait Implementations§
Source§impl Clone for CreateAccountRequest
impl Clone for CreateAccountRequest
Source§impl Debug for CreateAccountRequest
impl Debug for CreateAccountRequest
Source§impl Default for CreateAccountRequest
impl Default for CreateAccountRequest
Auto Trait Implementations§
impl Freeze for CreateAccountRequest
impl RefUnwindSafe for CreateAccountRequest
impl Send for CreateAccountRequest
impl Sync for CreateAccountRequest
impl Unpin for CreateAccountRequest
impl UnsafeUnpin for CreateAccountRequest
impl UnwindSafe for CreateAccountRequest
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