pub struct DefaultPrivilegesKey {
pub role_id: Option<RoleId>,
pub database_id: Option<DatabaseId>,
pub schema_id: Option<SchemaId>,
pub object_type: i32,
pub grantee: Option<RoleId>,
}Fields§
§role_id: Option<RoleId>§database_id: Option<DatabaseId>§schema_id: Option<SchemaId>§object_type: i32§grantee: Option<RoleId>Trait Implementations§
Source§impl Arbitrary for DefaultPrivilegesKey
impl Arbitrary for DefaultPrivilegesKey
Source§type Parameters = (<Option<RoleId> as Arbitrary>::Parameters, <Option<DatabaseId> as Arbitrary>::Parameters, <Option<SchemaId> as Arbitrary>::Parameters, <i32 as Arbitrary>::Parameters, <Option<RoleId> as Arbitrary>::Parameters)
type Parameters = (<Option<RoleId> as Arbitrary>::Parameters, <Option<DatabaseId> as Arbitrary>::Parameters, <Option<SchemaId> as Arbitrary>::Parameters, <i32 as Arbitrary>::Parameters, <Option<RoleId> as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = Map<(<Option<RoleId> as Arbitrary>::Strategy, <Option<DatabaseId> as Arbitrary>::Strategy, <Option<SchemaId> as Arbitrary>::Strategy, <i32 as Arbitrary>::Strategy, <Option<RoleId> as Arbitrary>::Strategy), fn((Option<RoleId>, Option<DatabaseId>, Option<SchemaId>, i32, Option<RoleId>)) -> DefaultPrivilegesKey>
type Strategy = Map<(<Option<RoleId> as Arbitrary>::Strategy, <Option<DatabaseId> as Arbitrary>::Strategy, <Option<SchemaId> as Arbitrary>::Strategy, <i32 as Arbitrary>::Strategy, <Option<RoleId> as Arbitrary>::Strategy), fn((Option<RoleId>, Option<DatabaseId>, Option<SchemaId>, i32, Option<RoleId>)) -> DefaultPrivilegesKey>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Clone for DefaultPrivilegesKey
impl Clone for DefaultPrivilegesKey
Source§fn clone(&self) -> DefaultPrivilegesKey
fn clone(&self) -> DefaultPrivilegesKey
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 DefaultPrivilegesKey
Source§impl Debug for DefaultPrivilegesKey
impl Debug for DefaultPrivilegesKey
Source§impl Default for DefaultPrivilegesKey
impl Default for DefaultPrivilegesKey
Source§fn default() -> DefaultPrivilegesKey
fn default() -> DefaultPrivilegesKey
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DefaultPrivilegesKey
impl<'de> Deserialize<'de> for DefaultPrivilegesKey
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 DefaultPrivilegesKey
Source§impl Ord for DefaultPrivilegesKey
impl Ord for DefaultPrivilegesKey
Source§fn cmp(&self, other: &DefaultPrivilegesKey) -> Ordering
fn cmp(&self, other: &DefaultPrivilegesKey) -> 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 DefaultPrivilegesKey
impl PartialEq for DefaultPrivilegesKey
Source§impl PartialOrd for DefaultPrivilegesKey
impl PartialOrd for DefaultPrivilegesKey
Source§impl Serialize for DefaultPrivilegesKey
impl Serialize for DefaultPrivilegesKey
impl StructuralPartialEq for DefaultPrivilegesKey
Auto Trait Implementations§
impl Freeze for DefaultPrivilegesKey
impl RefUnwindSafe for DefaultPrivilegesKey
impl Send for DefaultPrivilegesKey
impl Sync for DefaultPrivilegesKey
impl Unpin for DefaultPrivilegesKey
impl UnsafeUnpin for DefaultPrivilegesKey
impl UnwindSafe for DefaultPrivilegesKey
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