pub enum AlterRoleAction<'a> {
RenameTo {
rename_to_span: Span,
new_name: Identifier<'a>,
},
ResetAll {
reset_all_span: Span,
},
ResetInDatabase {
in_database_span: Span,
database_name: Identifier<'a>,
reset_span: Span,
parameter: Identifier<'a>,
},
SetInDatabase {
in_database_span: Span,
database_name: Identifier<'a>,
set_span: Span,
parameter: Identifier<'a>,
value: AlterRoleValue<'a>,
},
Set {
set_span: Span,
parameter: Identifier<'a>,
value: AlterRoleValue<'a>,
},
With {
with_span: Span,
options: Vec<RoleOption<'a>>,
},
}Expand description
Actions that can be performed in ALTER ROLE
Variants§
RenameTo
RENAME TO new_name
ResetAll
RESET ALL
ResetInDatabase
IN DATABASE database_name RESET parameter
SetInDatabase
IN DATABASE database_name SET parameter = value
Set
SET parameter = value
With
WITH options
Trait Implementations§
Source§impl<'a> Clone for AlterRoleAction<'a>
impl<'a> Clone for AlterRoleAction<'a>
Source§fn clone(&self) -> AlterRoleAction<'a>
fn clone(&self) -> AlterRoleAction<'a>
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<'a> Debug for AlterRoleAction<'a>
impl<'a> Debug for AlterRoleAction<'a>
Auto Trait Implementations§
impl<'a> Freeze for AlterRoleAction<'a>
impl<'a> RefUnwindSafe for AlterRoleAction<'a>
impl<'a> Send for AlterRoleAction<'a>
impl<'a> Sync for AlterRoleAction<'a>
impl<'a> Unpin for AlterRoleAction<'a>
impl<'a> UnsafeUnpin for AlterRoleAction<'a>
impl<'a> UnwindSafe for AlterRoleAction<'a>
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