pub enum RoleTarget {
Named(String),
None,
All,
AllExcept(Vec<String>),
Default,
}Expand description
Role target for SET ROLE statement
This enum specifies what role(s) to activate or deactivate.
§Variants
`Named`- Set to a specific role (PostgreSQL & MySQL)`None`- Deactivate all roles (PostgreSQL & MySQL)`All`- Activate all granted roles (MySQL only)`AllExcept`- Activate all except specified roles (MySQL only)`Default`- Activate default roles (MySQL only)
Variants§
Named(String)
SET ROLE role_name
None
SET ROLE NONE
All
SET ROLE ALL (MySQL only)
AllExcept(Vec<String>)
SET ROLE ALL EXCEPT role_list (MySQL only)
Default
SET ROLE DEFAULT (MySQL only)
Trait Implementations§
Source§impl Clone for RoleTarget
impl Clone for RoleTarget
Source§fn clone(&self) -> RoleTarget
fn clone(&self) -> RoleTarget
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 Debug for RoleTarget
impl Debug for RoleTarget
Source§impl PartialEq for RoleTarget
impl PartialEq for RoleTarget
impl StructuralPartialEq for RoleTarget
Auto Trait Implementations§
impl Freeze for RoleTarget
impl RefUnwindSafe for RoleTarget
impl Send for RoleTarget
impl Sync for RoleTarget
impl Unpin for RoleTarget
impl UnsafeUnpin for RoleTarget
impl UnwindSafe for RoleTarget
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