StringDataSchemaBuilder

Struct StringDataSchemaBuilder 

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

The builder for an StringSchema builder.

Trait Implementations§

Source§

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

Source§

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

Sets the value of the unit field.
Source§

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

Sets the value of the format field.
Source§

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

Sets the value of the default field.
Source§

impl<Inner: BuildableHumanReadableInfo> BuildableHumanReadableInfo for StringDataSchemaBuilder<Inner>

Source§

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

Set JSON-LD @type Read more
Source§

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

Set the title Read more
Source§

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

Set the translations of the title Read more
Source§

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

Set the description Read more
Source§

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

Set the translations of the description Read more
Source§

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

Source§

fn from(builder: StringDataSchemaBuilder<T>) -> Self

Converts to this type from the input type.
Source§

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

Source§

fn from(builder: StringDataSchemaBuilder<T>) -> Self

Converts to this type from the input type.
Source§

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

Source§

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

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

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

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

fn read_only(self) -> Self::ReadOnly

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

fn write_only(self) -> Self::WriteOnly

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

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

Source§

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

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

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

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

fn read_only(self) -> Self::ReadOnly

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

fn write_only(self) -> Self::WriteOnly

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

impl<Inner: BuildableDataSchema<DS, AS, OS, Extended>, DS, AS, OS> StringDataSchemaBuilderLike<DS, AS, OS> for StringDataSchemaBuilder<Inner>

Source§

fn min_length(self, value: u32) -> Self

Sets the value of the min_length field.
Source§

fn max_length(self, value: u32) -> Self

Sets the value of the max_length field.
Source§

fn pattern(self, value: impl Into<String>) -> Self

Sets the value of the pattern field.
Source§

fn content_encoding(self, value: impl Into<String>) -> Self

Sets the value of the content_encoding field.
Source§

fn content_media_type(self, value: impl Into<String>) -> Self

Sets the value of the content_media_type field.
Source§

impl<T, DS, AS, OS> TryFrom<StringDataSchemaBuilder<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: StringDataSchemaBuilder<T>) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

impl<Inner> UnwindSafe for StringDataSchemaBuilder<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, 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.