Struct DumpHeaderBuilder

Source
pub struct DumpHeaderBuilder<ATTRIBUTES = Array<'static, i16, KeyValue<'static>>, MAJOR_VER = i16, MINOR_VER = i16, SCHEMA_DDL = LString<'static>, TYPES = Array<'static, i32, DumpTypeInfo<'static>>, DESCRIPTORS = Array<'static, i32, DumpObjectDesc<'static>>>
where ATTRIBUTES: EncoderFor<Array<'static, i16, KeyValue<'static>>>, MAJOR_VER: EncoderFor<i16>, MINOR_VER: EncoderFor<i16>, SCHEMA_DDL: EncoderFor<LString<'static>>, TYPES: EncoderFor<Array<'static, i32, DumpTypeInfo<'static>>>, DESCRIPTORS: EncoderFor<Array<'static, i32, DumpObjectDesc<'static>>>,
{ pub attributes: ATTRIBUTES, pub major_ver: MAJOR_VER, pub minor_ver: MINOR_VER, pub schema_ddl: SCHEMA_DDL, pub types: TYPES, pub descriptors: DESCRIPTORS, }

Fields§

§attributes: ATTRIBUTES

Dump attributes.

§major_ver: MAJOR_VER

Major version of EdgeDB.

§minor_ver: MINOR_VER

Minor version of EdgeDB.

§schema_ddl: SCHEMA_DDL

Schema.

§types: TYPES

Type identifiers.

§descriptors: DESCRIPTORS

Object descriptors.

Trait Implementations§

Source§

impl<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS> BuilderFor for DumpHeaderBuilder<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS>
where ATTRIBUTES: EncoderFor<Array<'static, i16, KeyValue<'static>>>, MAJOR_VER: EncoderFor<i16>, MINOR_VER: EncoderFor<i16>, SCHEMA_DDL: EncoderFor<LString<'static>>, TYPES: EncoderFor<Array<'static, i32, DumpTypeInfo<'static>>>, DESCRIPTORS: EncoderFor<Array<'static, i32, DumpObjectDesc<'static>>>,

Source§

type Message = DumpHeader<'static>

Source§

impl<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS> Debug for DumpHeaderBuilder<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS>
where ATTRIBUTES: EncoderFor<Array<'static, i16, KeyValue<'static>>> + Debug, MAJOR_VER: EncoderFor<i16> + Debug, MINOR_VER: EncoderFor<i16> + Debug, SCHEMA_DDL: EncoderFor<LString<'static>> + Debug, TYPES: EncoderFor<Array<'static, i32, DumpTypeInfo<'static>>> + Debug, DESCRIPTORS: EncoderFor<Array<'static, i32, DumpObjectDesc<'static>>> + Debug,

Source§

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

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

impl<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS> Default for DumpHeaderBuilder<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS>
where ATTRIBUTES: EncoderFor<Array<'static, i16, KeyValue<'static>>> + Default, MAJOR_VER: EncoderFor<i16> + Default, MINOR_VER: EncoderFor<i16> + Default, SCHEMA_DDL: EncoderFor<LString<'static>> + Default, TYPES: EncoderFor<Array<'static, i32, DumpTypeInfo<'static>>> + Default, DESCRIPTORS: EncoderFor<Array<'static, i32, DumpObjectDesc<'static>>> + Default,

Source§

fn default() -> DumpHeaderBuilder<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS>

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

impl<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS> EncoderFor<DumpHeader<'static>> for &DumpHeaderBuilder<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS>
where ATTRIBUTES: EncoderFor<Array<'static, i16, KeyValue<'static>>>, MAJOR_VER: EncoderFor<i16>, MINOR_VER: EncoderFor<i16>, SCHEMA_DDL: EncoderFor<LString<'static>>, TYPES: EncoderFor<Array<'static, i32, DumpTypeInfo<'static>>>, DESCRIPTORS: EncoderFor<Array<'static, i32, DumpObjectDesc<'static>>>,

Source§

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

Source§

impl<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS> EncoderFor<DumpHeader<'static>> for DumpHeaderBuilder<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS>
where ATTRIBUTES: EncoderFor<Array<'static, i16, KeyValue<'static>>>, MAJOR_VER: EncoderFor<i16>, MINOR_VER: EncoderFor<i16>, SCHEMA_DDL: EncoderFor<LString<'static>>, TYPES: EncoderFor<Array<'static, i32, DumpTypeInfo<'static>>>, DESCRIPTORS: EncoderFor<Array<'static, i32, DumpObjectDesc<'static>>>,

Source§

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

Auto Trait Implementations§

§

impl<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS> Freeze for DumpHeaderBuilder<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS>
where ATTRIBUTES: Freeze, MAJOR_VER: Freeze, MINOR_VER: Freeze, SCHEMA_DDL: Freeze, TYPES: Freeze, DESCRIPTORS: Freeze,

§

impl<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS> RefUnwindSafe for DumpHeaderBuilder<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS>
where ATTRIBUTES: RefUnwindSafe, MAJOR_VER: RefUnwindSafe, MINOR_VER: RefUnwindSafe, SCHEMA_DDL: RefUnwindSafe, TYPES: RefUnwindSafe, DESCRIPTORS: RefUnwindSafe,

§

impl<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS> Send for DumpHeaderBuilder<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS>
where ATTRIBUTES: Send, MAJOR_VER: Send, MINOR_VER: Send, SCHEMA_DDL: Send, TYPES: Send, DESCRIPTORS: Send,

§

impl<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS> Sync for DumpHeaderBuilder<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS>
where ATTRIBUTES: Sync, MAJOR_VER: Sync, MINOR_VER: Sync, SCHEMA_DDL: Sync, TYPES: Sync, DESCRIPTORS: Sync,

§

impl<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS> Unpin for DumpHeaderBuilder<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS>
where ATTRIBUTES: Unpin, MAJOR_VER: Unpin, MINOR_VER: Unpin, SCHEMA_DDL: Unpin, TYPES: Unpin, DESCRIPTORS: Unpin,

§

impl<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS> UnwindSafe for DumpHeaderBuilder<ATTRIBUTES, MAJOR_VER, MINOR_VER, SCHEMA_DDL, TYPES, DESCRIPTORS>
where ATTRIBUTES: UnwindSafe, MAJOR_VER: UnwindSafe, MINOR_VER: UnwindSafe, SCHEMA_DDL: UnwindSafe, TYPES: UnwindSafe, DESCRIPTORS: 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.