Enum mysql::binlog::OptionalMetadataFieldType[][src]

#[repr(u8)]
pub enum OptionalMetadataFieldType {
    SIGNEDNESS,
    DEFAULT_CHARSET,
    COLUMN_CHARSET,
    COLUMN_NAME,
    SET_STR_VALUE,
    ENUM_STR_VALUE,
    GEOMETRY_TYPE,
    SIMPLE_PRIMARY_KEY,
    PRIMARY_KEY_WITH_PREFIX,
    ENUM_AND_SET_DEFAULT_CHARSET,
    ENUM_AND_SET_COLUMN_CHARSET,
    COLUMN_VISIBILITY,
}
Expand description

Enumerates types of optional metadata fields.

Variants

SIGNEDNESS

UNSIGNED flag of numeric columns.

Value format

For each numeric column, a bit indicates whether the numeric colunm has unsigned flag. 1 means it is unsigned. The number of bytes needed for this is int((column_count + 7) / 8).

DEFAULT_CHARSET

Character set of string columns.

This field should not appear with COLUMN_CHARSET.

Value format

  • default charset as a lenght-encoded integer,
  • then for every character column which charset isn’t default:
    • column index as a lenght-encoded integer,
    • column charset as a length-encoded integer.

The order is the same as the order of column_type field.

COLUMN_CHARSET

Character set of string columns.

This field should not appear with DEFAULT_CHARSET.

Value format

  • for every character column:
    • column charset as a length-encoded integer.

The order is the same as the order of column_type field.

COLUMN_NAME

Collumn name of columns (included if binlog_row_metadata=FULL).

Value format

  • for every column:
    • column name as a length-encoded string.

The order is the same as the order of column_type field.

SET_STR_VALUE

Name of each variant in a SET columns.

Value format

  • for every SET column:
    • number of variants as a length-encoded integer,
    • for each variant:
      • name of a variant as a length-encoded string.

The order is the same as the order of column_type field.

ENUM_STR_VALUE

Name of each variant in an ENUM columns.

Value format

  • for every ENUM column:
    • number of variants as a length-encoded integer,
    • for each variant:
      • name of a variant as a length-encoded string.

The order is the same as the order of column_type field.

GEOMETRY_TYPE

Real type of geometry columns.

Value format

  • for every geometry column:
    • geometry type as a length-encoded integer.

The order is the same as the order of column_type field.

SIMPLE_PRIMARY_KEY

Primary key without prefix (included if binlog_row_metadata=FULL).

This field should not appear with PRIMARY_KEY_WITH_PREFIX.

Value format

  • for every PK index column:
    • column index as a length-encoded integer.

The order is the same as the order of column_type field.

PRIMARY_KEY_WITH_PREFIX

Primary key with prefix (included if binlog_row_metadata=FULL).

This field should not appear with SIMPLE_PRIMARY_KEY.

Value format

  • for every PK index column:
    • column index as a length-encoded integer,
    • prefix length as a length-encoded integer

The order is the same as the order of column_type field.

Note
  • prefix length is a character length, i.e. prefix byte length divided by the maximum length of a character in the correspoding charset;
  • prefix length 0 means that the whole column value is used.

ENUM_AND_SET_DEFAULT_CHARSET

Character set of enum and set columns.

This field should not appear with ENUM_AND_SET_COLUMN_CHARSET.

Value format

  • default charset as a lenght-encoded integer,
  • then for every SET or ENUM column which charset isn’t default:
    • column index as a lenght-encoded integer,
    • column charset as a length-encoded integer.

The order is the same as the order of column_type field.

ENUM_AND_SET_COLUMN_CHARSET

Character set of enum and set columns.

This field should not appear with ENUM_AND_SET_DEFAULT_CHARSET.

Value format

  • for every SET or ENUM column:
    • column charset as a length-encoded integer.

The order is the same as the order of column_type field.

COLUMN_VISIBILITY

A flag that indicates column visibility attribute.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

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

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

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts self into T using Into<T>. Read more

Extract a subset of the possible types in a coproduct (or get the remaining possibilities) Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Performs the conversion.

Performs the conversion.

Performs the indexed conversion.

Pipes by value. This is generally the method you want to use. Read more

Borrows self and passes that borrow into the pipe function. Read more

Mutably borrows self and passes that borrow into the pipe function. Read more

Borrows self, then passes self.borrow() into the pipe function. Read more

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

Borrows self, then passes self.as_ref() into the pipe function.

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

Borrows self, then passes self.deref() into the pipe function.

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

Consumes the current HList and returns an HList with the requested shape. Read more

Immutable access to a value. Read more

Mutable access to a value. Read more

Immutable access to the Borrow<B> of a value. Read more

Mutable access to the BorrowMut<B> of a value. Read more

Immutable access to the AsRef<R> view of a value. Read more

Mutable access to the AsMut<R> view of a value. Read more

Immutable access to the Deref::Target of a value. Read more

Mutable access to the Deref::Target of a value. Read more

Calls .tap() only in debug builds, and is erased in release builds.

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Attempts to convert self into T using TryInto<T>. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.