pub struct RoleValue {
pub name: String,
pub attributes: Option<RoleAttributes>,
pub membership: Option<RoleMembership>,
pub vars: Option<RoleVars>,
pub oid: u32,
}Fields§
§name: String§attributes: Option<RoleAttributes>§membership: Option<RoleMembership>§vars: Option<RoleVars>§oid: u32Trait Implementations§
Source§impl Arbitrary for RoleValue
impl Arbitrary for RoleValue
Source§type Parameters = (<String as Arbitrary>::Parameters, <Option<RoleAttributes> as Arbitrary>::Parameters, <Option<RoleMembership> as Arbitrary>::Parameters, <Option<RoleVars> as Arbitrary>::Parameters, <u32 as Arbitrary>::Parameters)
type Parameters = (<String as Arbitrary>::Parameters, <Option<RoleAttributes> as Arbitrary>::Parameters, <Option<RoleMembership> as Arbitrary>::Parameters, <Option<RoleVars> as Arbitrary>::Parameters, <u32 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<(<String as Arbitrary>::Strategy, <Option<RoleAttributes> as Arbitrary>::Strategy, <Option<RoleMembership> as Arbitrary>::Strategy, <Option<RoleVars> as Arbitrary>::Strategy, <u32 as Arbitrary>::Strategy), fn((String, Option<RoleAttributes>, Option<RoleMembership>, Option<RoleVars>, u32)) -> RoleValue>
type Strategy = Map<(<String as Arbitrary>::Strategy, <Option<RoleAttributes> as Arbitrary>::Strategy, <Option<RoleMembership> as Arbitrary>::Strategy, <Option<RoleVars> as Arbitrary>::Strategy, <u32 as Arbitrary>::Strategy), fn((String, Option<RoleAttributes>, Option<RoleMembership>, Option<RoleVars>, u32)) -> RoleValue>
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<'de> Deserialize<'de> for RoleValue
impl<'de> Deserialize<'de> for RoleValue
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 RoleValue
Source§impl Ord for RoleValue
impl Ord for RoleValue
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 PartialOrd for RoleValue
impl PartialOrd for RoleValue
impl StructuralPartialEq for RoleValue
Auto Trait Implementations§
impl Freeze for RoleValue
impl RefUnwindSafe for RoleValue
impl Send for RoleValue
impl Sync for RoleValue
impl Unpin for RoleValue
impl UnsafeUnpin for RoleValue
impl UnwindSafe for RoleValue
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