pub struct CreatePolicyAttachmentRequest {
pub policy_id: String,
pub principal_id: String,
pub principal_type: String,
pub priority: i64,
}Expand description
Request to attach a policy to a principal.
JSON schema
{
"title": "CreatePolicyAttachmentRequest",
"description": "Request to attach a policy to a principal.",
"type": "object",
"required": [
"policy_id",
"principal_id",
"principal_type"
],
"properties": {
"policy_id": {
"title": "Policy Id",
"type": "string"
},
"principal_id": {
"title": "Principal Id",
"type": "string"
},
"principal_type": {
"title": "Principal Type",
"type": "string"
},
"priority": {
"title": "Priority",
"default": 0,
"type": "integer"
}
}
}Fields§
§policy_id: String§principal_id: String§principal_type: String§priority: i64Trait Implementations§
Source§impl Clone for CreatePolicyAttachmentRequest
impl Clone for CreatePolicyAttachmentRequest
Source§fn clone(&self) -> CreatePolicyAttachmentRequest
fn clone(&self) -> CreatePolicyAttachmentRequest
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<'de> Deserialize<'de> for CreatePolicyAttachmentRequest
impl<'de> Deserialize<'de> for CreatePolicyAttachmentRequest
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 From<&CreatePolicyAttachmentRequest> for CreatePolicyAttachmentRequest
impl From<&CreatePolicyAttachmentRequest> for CreatePolicyAttachmentRequest
Source§fn from(value: &CreatePolicyAttachmentRequest) -> Self
fn from(value: &CreatePolicyAttachmentRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreatePolicyAttachmentRequest
impl RefUnwindSafe for CreatePolicyAttachmentRequest
impl Send for CreatePolicyAttachmentRequest
impl Sync for CreatePolicyAttachmentRequest
impl Unpin for CreatePolicyAttachmentRequest
impl UnsafeUnpin for CreatePolicyAttachmentRequest
impl UnwindSafe for CreatePolicyAttachmentRequest
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