pub struct DefaultPrivileges {
pub key: Option<DefaultPrivilegesKey>,
pub value: Option<DefaultPrivilegesValue>,
}Fields§
§key: Option<DefaultPrivilegesKey>§value: Option<DefaultPrivilegesValue>Trait Implementations§
Source§impl Arbitrary for DefaultPrivileges
impl Arbitrary for DefaultPrivileges
Source§type Parameters = (<Option<DefaultPrivilegesKey> as Arbitrary>::Parameters, <Option<DefaultPrivilegesValue> as Arbitrary>::Parameters)
type Parameters = (<Option<DefaultPrivilegesKey> as Arbitrary>::Parameters, <Option<DefaultPrivilegesValue> 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<DefaultPrivilegesKey> as Arbitrary>::Strategy, <Option<DefaultPrivilegesValue> as Arbitrary>::Strategy), fn((Option<DefaultPrivilegesKey>, Option<DefaultPrivilegesValue>)) -> DefaultPrivileges>
type Strategy = Map<(<Option<DefaultPrivilegesKey> as Arbitrary>::Strategy, <Option<DefaultPrivilegesValue> as Arbitrary>::Strategy), fn((Option<DefaultPrivilegesKey>, Option<DefaultPrivilegesValue>)) -> DefaultPrivileges>
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 DefaultPrivileges
impl Clone for DefaultPrivileges
Source§fn clone(&self) -> DefaultPrivileges
fn clone(&self) -> DefaultPrivileges
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 DefaultPrivileges
Source§impl Debug for DefaultPrivileges
impl Debug for DefaultPrivileges
Source§impl Default for DefaultPrivileges
impl Default for DefaultPrivileges
Source§fn default() -> DefaultPrivileges
fn default() -> DefaultPrivileges
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DefaultPrivileges
impl<'de> Deserialize<'de> for DefaultPrivileges
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 DefaultPrivileges
Source§impl Ord for DefaultPrivileges
impl Ord for DefaultPrivileges
Source§fn cmp(&self, other: &DefaultPrivileges) -> Ordering
fn cmp(&self, other: &DefaultPrivileges) -> 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 DefaultPrivileges
impl PartialEq for DefaultPrivileges
Source§impl PartialOrd for DefaultPrivileges
impl PartialOrd for DefaultPrivileges
Source§impl Serialize for DefaultPrivileges
impl Serialize for DefaultPrivileges
impl StructuralPartialEq for DefaultPrivileges
Auto Trait Implementations§
impl Freeze for DefaultPrivileges
impl RefUnwindSafe for DefaultPrivileges
impl Send for DefaultPrivileges
impl Sync for DefaultPrivileges
impl Unpin for DefaultPrivileges
impl UnsafeUnpin for DefaultPrivileges
impl UnwindSafe for DefaultPrivileges
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