pub struct ItemColumn {
pub name: String,
pub nullable: bool,
pub type_oid: u32,
pub type_mod: i32,
pub custom_type: Option<CatalogItemId>,
}Expand description
A column of a relation item by the identity its type presents as: the OID
and type modifier of its PostgreSQL-compatible type, and the CREATE TYPE
item of a list, map or record type that one defines.
Fields§
§name: String§nullable: bool§type_oid: u32§type_mod: i32§custom_type: Option<CatalogItemId>Trait Implementations§
Source§impl Arbitrary for ItemColumn
impl Arbitrary for ItemColumn
Source§type Parameters = (<String as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters, <u32 as Arbitrary>::Parameters, <i32 as Arbitrary>::Parameters, <Option<CatalogItemId> as Arbitrary>::Parameters)
type Parameters = (<String as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters, <u32 as Arbitrary>::Parameters, <i32 as Arbitrary>::Parameters, <Option<CatalogItemId> 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, <bool as Arbitrary>::Strategy, <u32 as Arbitrary>::Strategy, <i32 as Arbitrary>::Strategy, <Option<CatalogItemId> as Arbitrary>::Strategy), fn((String, bool, u32, i32, Option<CatalogItemId>)) -> ItemColumn>
type Strategy = Map<(<String as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy, <u32 as Arbitrary>::Strategy, <i32 as Arbitrary>::Strategy, <Option<CatalogItemId> as Arbitrary>::Strategy), fn((String, bool, u32, i32, Option<CatalogItemId>)) -> ItemColumn>
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 ItemColumn
impl Clone for ItemColumn
Source§fn clone(&self) -> ItemColumn
fn clone(&self) -> ItemColumn
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 moreSource§impl Debug for ItemColumn
impl Debug for ItemColumn
Source§impl<'de> Deserialize<'de> for ItemColumn
impl<'de> Deserialize<'de> for ItemColumn
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 ItemColumn
Source§impl Ord for ItemColumn
impl Ord for ItemColumn
Source§fn cmp(&self, other: &ItemColumn) -> Ordering
fn cmp(&self, other: &ItemColumn) -> 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 ItemColumn
impl PartialEq for ItemColumn
Source§impl PartialOrd for ItemColumn
impl PartialOrd for ItemColumn
Source§impl Serialize for ItemColumn
impl Serialize for ItemColumn
impl StructuralPartialEq for ItemColumn
Auto Trait Implementations§
impl Freeze for ItemColumn
impl RefUnwindSafe for ItemColumn
impl Send for ItemColumn
impl Sync for ItemColumn
impl Unpin for ItemColumn
impl UnsafeUnpin for ItemColumn
impl UnwindSafe for ItemColumn
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