pub struct RoleDefinition {
pub oid: i64,
pub object_id: [u8; 16],
pub revision: u64,
pub name: String,
pub attributes: BTreeSet<RoleAttribute>,
pub connection_limit: i32,
}Fields§
§oid: i64§object_id: [u8; 16]Durable incarnation independent of the recyclable SQL-visible OID. Zero identifies legacy metadata that requires initial-open migration.
revision: u64Version of this definition tuple; even an attribute assignment of the same value creates a new tuple version. Zero requires initial-open conversion.
name: String§attributes: BTreeSet<RoleAttribute>§connection_limit: i32Implementations§
Source§impl RoleDefinition
impl RoleDefinition
pub fn identity(&self) -> RoleIdentity
pub fn bootstrap() -> Self
pub fn from_create( statement: &CreateRoleStmt, oid: i64, object_id: [u8; 16], ) -> Self
pub fn has(&self, attribute: RoleAttribute) -> bool
pub fn advance_revision(&mut self) -> Result<(), SQLError>
Trait Implementations§
Source§impl Clone for RoleDefinition
impl Clone for RoleDefinition
Source§impl Debug for RoleDefinition
impl Debug for RoleDefinition
Source§impl<'de> Deserialize<'de> for RoleDefinition
impl<'de> Deserialize<'de> for RoleDefinition
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
impl Eq for RoleDefinition
Source§impl PartialEq for RoleDefinition
impl PartialEq for RoleDefinition
Source§impl Serialize for RoleDefinition
impl Serialize for RoleDefinition
impl StructuralPartialEq for RoleDefinition
Auto Trait Implementations§
impl Freeze for RoleDefinition
impl RefUnwindSafe for RoleDefinition
impl Send for RoleDefinition
impl Sync for RoleDefinition
impl Unpin for RoleDefinition
impl UnsafeUnpin for RoleDefinition
impl UnwindSafe for RoleDefinition
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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