Struct EnumDataSchemaBuilder

Source
pub struct EnumDataSchemaBuilder<Inner> { /* private fields */ }
Expand description

A typetag for a DataSchema builder that has the enumeration field populated.

Trait Implementations§

Source§

impl<DS, AS, OS, Inner> BuildableDataSchema<DS, AS, OS, Extended> for EnumDataSchemaBuilder<Inner>
where Inner: BuildableDataSchema<DS, AS, OS, Extended>,

Source§

fn unit(self, value: impl Into<String>) -> EnumDataSchemaBuilder<Inner>

Sets the value of the unit field.
Source§

fn format(self, value: impl Into<String>) -> EnumDataSchemaBuilder<Inner>

Sets the value of the format field.
Source§

fn default_value(self, value: impl Into<Value>) -> EnumDataSchemaBuilder<Inner>

Sets the value of the default field.
Source§

impl<Inner> BuildableHumanReadableInfo for EnumDataSchemaBuilder<Inner>

Source§

fn attype(self, value: impl Into<String>) -> EnumDataSchemaBuilder<Inner>

Set JSON-LD @type Read more
Source§

fn title(self, value: impl Into<String>) -> EnumDataSchemaBuilder<Inner>

Set the title Read more
Source§

fn titles<F>(self, f: F) -> EnumDataSchemaBuilder<Inner>

Set the translations of the title Read more
Source§

fn description(self, value: impl Into<String>) -> EnumDataSchemaBuilder<Inner>

Set the description Read more
Source§

fn descriptions<F>(self, f: F) -> EnumDataSchemaBuilder<Inner>

Set the translations of the description Read more
Source§

impl<DS, AS, OS> EnumerableDataSchema<DS, AS, OS, Extended> for EnumDataSchemaBuilder<DataSchemaBuilder<DS, AS, OS, Extended>>

Source§

type Target = EnumDataSchemaBuilder<DataSchemaBuilder<DS, AS, OS, Extended>>

The enumeration specialization of the data schema builder.
Source§

fn enumeration( self, value: impl Into<Value>, ) -> <EnumDataSchemaBuilder<DataSchemaBuilder<DS, AS, OS, Extended>> as EnumerableDataSchema<DS, AS, OS, Extended>>::Target

Returns a specialized enumeration data schema and adds a variant to the enumeration field. It can be implemented for specialized enumeration data schemas. Read more
Source§

impl<DS, AS, OS> EnumerableDataSchema<DS, AS, OS, Extended> for EnumDataSchemaBuilder<PartialDataSchemaBuilder<DS, AS, OS, Extended>>

Source§

type Target = EnumDataSchemaBuilder<PartialDataSchemaBuilder<DS, AS, OS, Extended>>

The enumeration specialization of the data schema builder.
Source§

fn enumeration( self, value: impl Into<Value>, ) -> <EnumDataSchemaBuilder<PartialDataSchemaBuilder<DS, AS, OS, Extended>> as EnumerableDataSchema<DS, AS, OS, Extended>>::Target

Returns a specialized enumeration data schema and adds a variant to the enumeration field. It can be implemented for specialized enumeration data schemas. Read more
Source§

impl<T, DS, AS, OS> From<EnumDataSchemaBuilder<T>> for PartialDataSchema<DS, AS, OS>
where T: Into<PartialDataSchemaBuilder<DS, AS, OS, Extended>>,

Source§

fn from(builder: EnumDataSchemaBuilder<T>) -> PartialDataSchema<DS, AS, OS>

Converts to this type from the input type.
Source§

impl<T, DS, AS, OS> From<EnumDataSchemaBuilder<T>> for UncheckedDataSchema<DS, AS, OS>
where T: Into<DataSchemaBuilder<DS, AS, OS, Extended>>,

Source§

fn from(builder: EnumDataSchemaBuilder<T>) -> UncheckedDataSchema<DS, AS, OS>

Converts to this type from the input type.
Source§

impl<DS, AS, OS> ReadableWriteableDataSchema<DS, AS, OS, Extended> for EnumDataSchemaBuilder<DataSchemaBuilder<DS, AS, OS, Extended>>

Source§

type ReadOnly = ReadOnly<EnumDataSchemaBuilder<DataSchemaBuilder<DS, AS, OS, Extended>>>

The read-only variant of the data schema builder.
Source§

type WriteOnly = WriteOnly<EnumDataSchemaBuilder<DataSchemaBuilder<DS, AS, OS, Extended>>>

The write-only variant of the data schema builder.
Source§

fn read_only( self, ) -> <EnumDataSchemaBuilder<DataSchemaBuilder<DS, AS, OS, Extended>> as ReadableWriteableDataSchema<DS, AS, OS, Extended>>::ReadOnly

Creates a read-only variant of the data schema builder. Read more
Source§

fn write_only( self, ) -> <EnumDataSchemaBuilder<DataSchemaBuilder<DS, AS, OS, Extended>> as ReadableWriteableDataSchema<DS, AS, OS, Extended>>::WriteOnly

Creates a write-only variant of the data schema builder. Read more
Source§

impl<DS, AS, OS> ReadableWriteableDataSchema<DS, AS, OS, Extended> for EnumDataSchemaBuilder<PartialDataSchemaBuilder<DS, AS, OS, Extended>>

Source§

type ReadOnly = ReadOnly<EnumDataSchemaBuilder<PartialDataSchemaBuilder<DS, AS, OS, Extended>>>

The read-only variant of the data schema builder.
Source§

type WriteOnly = WriteOnly<EnumDataSchemaBuilder<PartialDataSchemaBuilder<DS, AS, OS, Extended>>>

The write-only variant of the data schema builder.
Source§

fn read_only( self, ) -> <EnumDataSchemaBuilder<PartialDataSchemaBuilder<DS, AS, OS, Extended>> as ReadableWriteableDataSchema<DS, AS, OS, Extended>>::ReadOnly

Creates a read-only variant of the data schema builder. Read more
Source§

fn write_only( self, ) -> <EnumDataSchemaBuilder<PartialDataSchemaBuilder<DS, AS, OS, Extended>> as ReadableWriteableDataSchema<DS, AS, OS, Extended>>::WriteOnly

Creates a write-only variant of the data schema builder. Read more
Source§

impl<T, DS, AS, OS> TryFrom<EnumDataSchemaBuilder<T>> for DataSchema<DS, AS, OS>
where T: Into<DataSchemaBuilder<DS, AS, OS, Extended>>,

Source§

type Error = Error

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

fn try_from( value: EnumDataSchemaBuilder<T>, ) -> Result<DataSchema<DS, AS, OS>, <DataSchema<DS, AS, OS> as TryFrom<EnumDataSchemaBuilder<T>>>::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl<Inner> Freeze for EnumDataSchemaBuilder<Inner>
where Inner: Freeze,

§

impl<Inner> RefUnwindSafe for EnumDataSchemaBuilder<Inner>
where Inner: RefUnwindSafe,

§

impl<Inner> Send for EnumDataSchemaBuilder<Inner>
where Inner: Send,

§

impl<Inner> Sync for EnumDataSchemaBuilder<Inner>
where Inner: Sync,

§

impl<Inner> Unpin for EnumDataSchemaBuilder<Inner>
where Inner: Unpin,

§

impl<Inner> UnwindSafe for EnumDataSchemaBuilder<Inner>
where Inner: 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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more