Struct mysql::consts::ColumnFlags[]

pub struct ColumnFlags { /* fields omitted */ }

MySql column flags

Methods

impl ColumnFlags

NOT_NULL_FLAG: ColumnFlags = ColumnFlags{bits: 1u16,}

Field can't be NULL.

PRI_KEY_FLAG: ColumnFlags = ColumnFlags{bits: 2u16,}

Field is part of a primary key.

UNIQUE_KEY_FLAG: ColumnFlags = ColumnFlags{bits: 4u16,}

Field is part of a unique key.

MULTIPLE_KEY_FLAG: ColumnFlags = ColumnFlags{bits: 8u16,}

Field is part of a key.

BLOB_FLAG: ColumnFlags = ColumnFlags{bits: 16u16,}

Field is a blob.

UNSIGNED_FLAG: ColumnFlags = ColumnFlags{bits: 32u16,}

Field is unsigned.

ZEROFILL_FLAG: ColumnFlags = ColumnFlags{bits: 64u16,}

Field is zerofill.

BINARY_FLAG: ColumnFlags = ColumnFlags{bits: 128u16,}

Field is binary.

ENUM_FLAG: ColumnFlags = ColumnFlags{bits: 256u16,}

Field is an enum.

AUTO_INCREMENT_FLAG: ColumnFlags = ColumnFlags{bits: 512u16,}

Field is a autoincrement field.

TIMESTAMP_FLAG: ColumnFlags = ColumnFlags{bits: 1024u16,}

Field is a timestamp.

SET_FLAG: ColumnFlags = ColumnFlags{bits: 2048u16,}

Field is a set.

NO_DEFAULT_VALUE_FLAG: ColumnFlags = ColumnFlags{bits: 4096u16,}

Field doesn't have default value.

ON_UPDATE_NOW_FLAG: ColumnFlags = ColumnFlags{bits: 8192u16,}

Field is set to NOW on UPDATE.

PART_KEY_FLAG: ColumnFlags = ColumnFlags{bits: 16384u16,}

Intern; Part of some key.

NUM_FLAG: ColumnFlags = ColumnFlags{bits: 32768u16,}

Field is num (for clients).

Returns an empty set of flags.

Returns the set containing all flags.

Returns the raw value of the flags currently stored.

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

Returns true if no flags are currently stored.

Returns true if all flags are currently set.

Returns true if there are flags common to both self and other.

Returns true all of the flags in other are contained within self.

Inserts the specified flags in-place.

Removes the specified flags in-place.

Toggles the specified flags in-place.

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl LowerHex for ColumnFlags

Formats the value using the given formatter.

impl BitAnd<ColumnFlags> for ColumnFlags

The resulting type after applying the & operator.

Returns the intersection between the two sets of flags.

impl PartialOrd<ColumnFlags> for ColumnFlags

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Extend<ColumnFlags> for ColumnFlags

Extends a collection with the contents of an iterator. Read more

impl Hash for ColumnFlags

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Sub<ColumnFlags> for ColumnFlags

The resulting type after applying the - operator.

Returns the set difference of the two sets of flags.

impl Clone for ColumnFlags

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ColumnFlags

Formats the value using the given formatter. Read more

impl Ord for ColumnFlags

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Binary for ColumnFlags

Formats the value using the given formatter.

impl Octal for ColumnFlags

Formats the value using the given formatter.

impl UpperHex for ColumnFlags

Formats the value using the given formatter.

impl BitOr<ColumnFlags> for ColumnFlags

The resulting type after applying the | operator.

Returns the union of the two sets of flags.

impl FromIterator<ColumnFlags> for ColumnFlags

Creates a value from an iterator. Read more

impl SubAssign<ColumnFlags> for ColumnFlags

Disables all flags enabled in the set.

impl BitXor<ColumnFlags> for ColumnFlags

The resulting type after applying the ^ operator.

Returns the left flags, but with all the right flags toggled.

impl Copy for ColumnFlags

impl BitAndAssign<ColumnFlags> for ColumnFlags

Disables all flags disabled in the set.

impl Eq for ColumnFlags

impl PartialEq<ColumnFlags> for ColumnFlags

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl BitXorAssign<ColumnFlags> for ColumnFlags

Toggles the set of flags.

impl Not for ColumnFlags

The resulting type after applying the ! operator.

Returns the complement of this set of flags.

impl BitOrAssign<ColumnFlags> for ColumnFlags

Adds the set of flags.

Auto Trait Implementations

impl Send for ColumnFlags

impl Sync for ColumnFlags