pub enum ClusterChange {
CreateRole(Role),
DropRole {
name: Identifier,
},
AlterRoleAttributes {
name: Identifier,
from: RoleAttributes,
to: RoleAttributes,
},
GrantRoleMembership {
member: Identifier,
role: Identifier,
},
RevokeRoleMembership {
member: Identifier,
role: Identifier,
},
CommentOnRole {
name: Identifier,
comment: Option<String>,
},
}Expand description
One change to apply to a cluster’s role layout.
Variants§
CreateRole(Role)
Create a new role with the given definition.
DropRole
Drop an existing role by name.
Fields
§
name: IdentifierName of the role to drop.
AlterRoleAttributes
Alter the attributes of an existing role.
Both from and to are carried so that downstream lint rules (e.g.
role-loses-superuser) can inspect the before state.
Fields
§
name: IdentifierName of the role being altered.
§
from: RoleAttributesAttribute values before the change.
§
to: RoleAttributesAttribute values after the change.
GrantRoleMembership
Grant membership of role to member.
Fields
§
member: IdentifierWho gains the membership.
§
role: IdentifierWhich role they become a member of.
RevokeRoleMembership
Revoke membership of role from member.
Fields
§
member: IdentifierWho loses the membership.
§
role: IdentifierWhich role they are removed from.
CommentOnRole
Set or clear the comment on a role.
Fields
§
name: IdentifierName of the role.
Trait Implementations§
Source§impl Clone for ClusterChange
impl Clone for ClusterChange
Source§fn clone(&self) -> ClusterChange
fn clone(&self) -> ClusterChange
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 ClusterChange
impl Debug for ClusterChange
Source§impl PartialEq for ClusterChange
impl PartialEq for ClusterChange
Source§fn eq(&self, other: &ClusterChange) -> bool
fn eq(&self, other: &ClusterChange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ClusterChange
impl StructuralPartialEq for ClusterChange
Auto Trait Implementations§
impl Freeze for ClusterChange
impl RefUnwindSafe for ClusterChange
impl Send for ClusterChange
impl Sync for ClusterChange
impl Unpin for ClusterChange
impl UnsafeUnpin for ClusterChange
impl UnwindSafe for ClusterChange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more