pub struct CreateProfileRequest {
pub name: String,
pub description: Option<String>,
pub color: Option<String>,
}Fields§
§name: String§description: Option<String>§color: Option<String>Implementations§
Source§impl CreateProfileRequest
impl CreateProfileRequest
pub fn new(name: String) -> CreateProfileRequest
Trait Implementations§
Source§impl Clone for CreateProfileRequest
impl Clone for CreateProfileRequest
Source§fn clone(&self) -> CreateProfileRequest
fn clone(&self) -> CreateProfileRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateProfileRequest
impl Debug for CreateProfileRequest
Source§impl Default for CreateProfileRequest
impl Default for CreateProfileRequest
Source§fn default() -> CreateProfileRequest
fn default() -> CreateProfileRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateProfileRequest
impl<'de> Deserialize<'de> for CreateProfileRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CreateProfileRequest
impl PartialEq for CreateProfileRequest
Source§fn eq(&self, other: &CreateProfileRequest) -> bool
fn eq(&self, other: &CreateProfileRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CreateProfileRequest
impl Serialize for CreateProfileRequest
impl StructuralPartialEq for CreateProfileRequest
Auto Trait Implementations§
impl Freeze for CreateProfileRequest
impl RefUnwindSafe for CreateProfileRequest
impl Send for CreateProfileRequest
impl Sync for CreateProfileRequest
impl Unpin for CreateProfileRequest
impl UnsafeUnpin for CreateProfileRequest
impl UnwindSafe for CreateProfileRequest
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