RowFieldBuilder

Struct RowFieldBuilder 

Source
pub struct RowFieldBuilder<NAME = ZTString<'static>, TABLE_OID = i32, COLUMN_ATTR_NUMBER = i16, DATA_TYPE_OID = i32, DATA_TYPE_SIZE = i16, TYPE_MODIFIER = i32, FORMAT_CODE = FormatCode>
where NAME: EncoderFor<ZTString<'static>>, TABLE_OID: EncoderFor<i32>, COLUMN_ATTR_NUMBER: EncoderFor<i16>, DATA_TYPE_OID: EncoderFor<i32>, DATA_TYPE_SIZE: EncoderFor<i16>, TYPE_MODIFIER: EncoderFor<i32>, FORMAT_CODE: EncoderFor<FormatCode>,
{ pub name: NAME, pub table_oid: TABLE_OID, pub column_attr_number: COLUMN_ATTR_NUMBER, pub data_type_oid: DATA_TYPE_OID, pub data_type_size: DATA_TYPE_SIZE, pub type_modifier: TYPE_MODIFIER, pub format_code: FORMAT_CODE, }

Fields§

§name: NAME

The field name

§table_oid: TABLE_OID

The table ID (OID) of the table the column is from, or 0 if not a column reference

§column_attr_number: COLUMN_ATTR_NUMBER

The attribute number of the column, or 0 if not a column reference

§data_type_oid: DATA_TYPE_OID

The object ID of the field’s data type

§data_type_size: DATA_TYPE_SIZE

The data type size (negative if variable size)

§type_modifier: TYPE_MODIFIER

The type modifier

§format_code: FORMAT_CODE

The format code being used for the field (0 for text, 1 for binary)

Trait Implementations§

Source§

impl<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE> BuilderFor for RowFieldBuilder<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE>
where NAME: EncoderFor<ZTString<'static>>, TABLE_OID: EncoderFor<i32>, COLUMN_ATTR_NUMBER: EncoderFor<i16>, DATA_TYPE_OID: EncoderFor<i32>, DATA_TYPE_SIZE: EncoderFor<i16>, TYPE_MODIFIER: EncoderFor<i32>, FORMAT_CODE: EncoderFor<FormatCode>,

Source§

type Message = RowField<'static>

Source§

impl<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE> Debug for RowFieldBuilder<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE>
where NAME: EncoderFor<ZTString<'static>> + Debug, TABLE_OID: EncoderFor<i32> + Debug, COLUMN_ATTR_NUMBER: EncoderFor<i16> + Debug, DATA_TYPE_OID: EncoderFor<i32> + Debug, DATA_TYPE_SIZE: EncoderFor<i16> + Debug, TYPE_MODIFIER: EncoderFor<i32> + Debug, FORMAT_CODE: EncoderFor<FormatCode> + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE> Default for RowFieldBuilder<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE>
where NAME: EncoderFor<ZTString<'static>> + Default, TABLE_OID: EncoderFor<i32> + Default, COLUMN_ATTR_NUMBER: EncoderFor<i16> + Default, DATA_TYPE_OID: EncoderFor<i32> + Default, DATA_TYPE_SIZE: EncoderFor<i16> + Default, TYPE_MODIFIER: EncoderFor<i32> + Default, FORMAT_CODE: EncoderFor<FormatCode> + Default,

Source§

fn default() -> RowFieldBuilder<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE>

Returns the “default value” for a type. Read more
Source§

impl<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE> EncoderFor<RowField<'static>> for &RowFieldBuilder<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE>
where NAME: EncoderFor<ZTString<'static>>, TABLE_OID: EncoderFor<i32>, COLUMN_ATTR_NUMBER: EncoderFor<i16>, DATA_TYPE_OID: EncoderFor<i32>, DATA_TYPE_SIZE: EncoderFor<i16>, TYPE_MODIFIER: EncoderFor<i32>, FORMAT_CODE: EncoderFor<FormatCode>,

Source§

fn encode_for(&self, buf: &mut BufWriter<'_>)

Source§

impl<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE> EncoderFor<RowField<'static>> for RowFieldBuilder<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE>
where NAME: EncoderFor<ZTString<'static>>, TABLE_OID: EncoderFor<i32>, COLUMN_ATTR_NUMBER: EncoderFor<i16>, DATA_TYPE_OID: EncoderFor<i32>, DATA_TYPE_SIZE: EncoderFor<i16>, TYPE_MODIFIER: EncoderFor<i32>, FORMAT_CODE: EncoderFor<FormatCode>,

Source§

fn encode_for(&self, buf: &mut BufWriter<'_>)

Auto Trait Implementations§

§

impl<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE> Freeze for RowFieldBuilder<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE>
where NAME: Freeze, TABLE_OID: Freeze, COLUMN_ATTR_NUMBER: Freeze, DATA_TYPE_OID: Freeze, DATA_TYPE_SIZE: Freeze, TYPE_MODIFIER: Freeze, FORMAT_CODE: Freeze,

§

impl<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE> RefUnwindSafe for RowFieldBuilder<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE>
where NAME: RefUnwindSafe, TABLE_OID: RefUnwindSafe, COLUMN_ATTR_NUMBER: RefUnwindSafe, DATA_TYPE_OID: RefUnwindSafe, DATA_TYPE_SIZE: RefUnwindSafe, TYPE_MODIFIER: RefUnwindSafe, FORMAT_CODE: RefUnwindSafe,

§

impl<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE> Send for RowFieldBuilder<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE>
where NAME: Send, TABLE_OID: Send, COLUMN_ATTR_NUMBER: Send, DATA_TYPE_OID: Send, DATA_TYPE_SIZE: Send, TYPE_MODIFIER: Send, FORMAT_CODE: Send,

§

impl<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE> Sync for RowFieldBuilder<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE>
where NAME: Sync, TABLE_OID: Sync, COLUMN_ATTR_NUMBER: Sync, DATA_TYPE_OID: Sync, DATA_TYPE_SIZE: Sync, TYPE_MODIFIER: Sync, FORMAT_CODE: Sync,

§

impl<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE> Unpin for RowFieldBuilder<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE>
where NAME: Unpin, TABLE_OID: Unpin, COLUMN_ATTR_NUMBER: Unpin, DATA_TYPE_OID: Unpin, DATA_TYPE_SIZE: Unpin, TYPE_MODIFIER: Unpin, FORMAT_CODE: Unpin,

§

impl<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE> UnwindSafe for RowFieldBuilder<NAME, TABLE_OID, COLUMN_ATTR_NUMBER, DATA_TYPE_OID, DATA_TYPE_SIZE, TYPE_MODIFIER, FORMAT_CODE>
where NAME: UnwindSafe, TABLE_OID: UnwindSafe, COLUMN_ATTR_NUMBER: UnwindSafe, DATA_TYPE_OID: UnwindSafe, DATA_TYPE_SIZE: UnwindSafe, TYPE_MODIFIER: UnwindSafe, FORMAT_CODE: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> EncoderForExt for T
where T: ?Sized,

Source§

fn to_vec<F>(&self) -> Vec<u8>
where F: 'static, Self: EncoderFor<F>,

Convert this builder into a vector of bytes. This is generally not the most efficient way to perform serialization.
Source§

fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>
where F: 'static, Self: EncoderFor<F>,

Encode this builder into a given buffer. If the buffer is too small, the function will return the number of bytes required to encode the builder.
Source§

fn encode_buffer_uninit<'a, F>( &self, buf: &'a mut [MaybeUninit<u8>], ) -> Result<&'a mut [u8], usize>
where F: 'static, Self: EncoderFor<F>,

Encode this builder into a given buffer. If the buffer is too small, the function will return the number of bytes required to encode the builder.
Source§

fn measure<F>(&self) -> usize
where F: 'static, Self: EncoderFor<F>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.