pub struct AssignRoleParamsBody {
pub role_slug: String,
pub resource_target: ResourceTarget,
}Fields§
§role_slug: StringThe slug of the role to assign.
Required.
resource_target: ResourceTargetImplementations§
Source§impl AssignRoleParamsBody
impl AssignRoleParamsBody
Sourcepub fn new(
role_slug: impl Into<String>,
resource_target: ResourceTarget,
) -> Self
pub fn new( role_slug: impl Into<String>, resource_target: ResourceTarget, ) -> Self
Construct a new AssignRoleParamsBody with the required fields set.
Trait Implementations§
Source§impl Clone for AssignRoleParamsBody
impl Clone for AssignRoleParamsBody
Source§fn clone(&self) -> AssignRoleParamsBody
fn clone(&self) -> AssignRoleParamsBody
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 AssignRoleParamsBody
impl Debug for AssignRoleParamsBody
Source§impl<'de> Deserialize<'de> for AssignRoleParamsBody
impl<'de> Deserialize<'de> for AssignRoleParamsBody
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
Auto Trait Implementations§
impl Freeze for AssignRoleParamsBody
impl RefUnwindSafe for AssignRoleParamsBody
impl Send for AssignRoleParamsBody
impl Sync for AssignRoleParamsBody
impl Unpin for AssignRoleParamsBody
impl UnsafeUnpin for AssignRoleParamsBody
impl UnwindSafe for AssignRoleParamsBody
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