pub struct UpdateSelfServiceAccountRequest {
pub display_name: String,
}Expand description
Self-service SA update — only display_name is mutable.
Scoping policy and activation state are admin-only operations. An SA authenticates as its owner, so without this restriction an SA could remove its own scoping policy and escalate to the parent user’s full permissions.
JSON schema
{
"title": "UpdateSelfServiceAccountRequest",
"description": "Self-service SA update — only display_name is mutable.\n\nScoping policy and activation state are admin-only operations.\nAn SA authenticates as its owner, so without this restriction an SA\ncould remove its own scoping policy and escalate to the parent user's\nfull permissions.",
"type": "object",
"required": [
"display_name"
],
"properties": {
"display_name": {
"title": "Display Name",
"type": "string"
}
},
"additionalProperties": false
}Fields§
§display_name: StringTrait Implementations§
Source§impl Clone for UpdateSelfServiceAccountRequest
impl Clone for UpdateSelfServiceAccountRequest
Source§fn clone(&self) -> UpdateSelfServiceAccountRequest
fn clone(&self) -> UpdateSelfServiceAccountRequest
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 UpdateSelfServiceAccountRequest
impl<'de> Deserialize<'de> for UpdateSelfServiceAccountRequest
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<&UpdateSelfServiceAccountRequest> for UpdateSelfServiceAccountRequest
impl From<&UpdateSelfServiceAccountRequest> for UpdateSelfServiceAccountRequest
Source§fn from(value: &UpdateSelfServiceAccountRequest) -> Self
fn from(value: &UpdateSelfServiceAccountRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UpdateSelfServiceAccountRequest
impl RefUnwindSafe for UpdateSelfServiceAccountRequest
impl Send for UpdateSelfServiceAccountRequest
impl Sync for UpdateSelfServiceAccountRequest
impl Unpin for UpdateSelfServiceAccountRequest
impl UnsafeUnpin for UpdateSelfServiceAccountRequest
impl UnwindSafe for UpdateSelfServiceAccountRequest
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