pub struct PatchedRoleRequest {
pub name: Option<String>,
pub slug: Option<String>,
pub weight: Option<i32>,
pub description: Option<String>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
PatchedRoleRequest : Adds support for custom fields and tags.
Fields§
§name: Option<String>§slug: Option<String>§weight: Option<i32>§description: Option<String>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl PatchedRoleRequest
impl PatchedRoleRequest
Sourcepub fn new() -> PatchedRoleRequest
pub fn new() -> PatchedRoleRequest
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for PatchedRoleRequest
impl Clone for PatchedRoleRequest
Source§fn clone(&self) -> PatchedRoleRequest
fn clone(&self) -> PatchedRoleRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 PatchedRoleRequest
impl Debug for PatchedRoleRequest
Source§impl Default for PatchedRoleRequest
impl Default for PatchedRoleRequest
Source§fn default() -> PatchedRoleRequest
fn default() -> PatchedRoleRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedRoleRequest
impl<'de> Deserialize<'de> for PatchedRoleRequest
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 PatchedRoleRequest
impl PartialEq for PatchedRoleRequest
Source§impl Serialize for PatchedRoleRequest
impl Serialize for PatchedRoleRequest
impl StructuralPartialEq for PatchedRoleRequest
Auto Trait Implementations§
impl Freeze for PatchedRoleRequest
impl RefUnwindSafe for PatchedRoleRequest
impl Send for PatchedRoleRequest
impl Sync for PatchedRoleRequest
impl Unpin for PatchedRoleRequest
impl UnwindSafe for PatchedRoleRequest
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