pub struct RoleIdentity {
pub oid: i64,
pub object_id: [u8; 16],
}Expand description
A catalog reference retains both the public OID and the role incarnation.
Fields§
§oid: i64§object_id: [u8; 16]Implementations§
Source§impl RoleIdentity
impl RoleIdentity
Trait Implementations§
Source§impl Clone for RoleIdentity
impl Clone for RoleIdentity
Source§fn clone(&self) -> RoleIdentity
fn clone(&self) -> RoleIdentity
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 moreimpl Copy for RoleIdentity
Source§impl Debug for RoleIdentity
impl Debug for RoleIdentity
Source§impl<'de> Deserialize<'de> for RoleIdentity
impl<'de> Deserialize<'de> for RoleIdentity
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RoleIdentity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RoleIdentity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RoleIdentity
Source§impl Ord for RoleIdentity
impl Ord for RoleIdentity
Source§fn cmp(&self, other: &RoleIdentity) -> Ordering
fn cmp(&self, other: &RoleIdentity) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RoleIdentity
impl PartialEq for RoleIdentity
Source§impl PartialOrd for RoleIdentity
impl PartialOrd for RoleIdentity
Source§impl RoleSubject for RoleIdentity
impl RoleSubject for RoleIdentity
fn role_name<'a>( &'a self, roles: &'a BTreeMap<String, RoleDefinition>, ) -> Option<&'a str>
fn role_definition<'a>( &self, roles: &'a BTreeMap<String, RoleDefinition>, ) -> Option<&'a RoleDefinition>
Source§impl Serialize for RoleIdentity
impl Serialize for RoleIdentity
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RoleIdentity
Auto Trait Implementations§
impl Freeze for RoleIdentity
impl RefUnwindSafe for RoleIdentity
impl Send for RoleIdentity
impl Sync for RoleIdentity
impl Unpin for RoleIdentity
impl UnsafeUnpin for RoleIdentity
impl UnwindSafe for RoleIdentity
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