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>,
impl<DS, AS, OS, Inner> BuildableDataSchema<DS, AS, OS, Extended> for StringDataSchemaBuilder<Inner>where
Inner: BuildableDataSchema<DS, AS, OS, Extended>,
Source§impl<Inner: BuildableHumanReadableInfo> BuildableHumanReadableInfo for StringDataSchemaBuilder<Inner>
impl<Inner: BuildableHumanReadableInfo> BuildableHumanReadableInfo for StringDataSchemaBuilder<Inner>
Source§impl<T, DS, AS, OS> From<StringDataSchemaBuilder<T>> for PartialDataSchema<DS, AS, OS>
impl<T, DS, AS, OS> From<StringDataSchemaBuilder<T>> for PartialDataSchema<DS, AS, OS>
Source§fn from(builder: StringDataSchemaBuilder<T>) -> Self
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>
impl<T, DS, AS, OS> From<StringDataSchemaBuilder<T>> for UncheckedDataSchema<DS, AS, OS>
Source§fn from(builder: StringDataSchemaBuilder<T>) -> Self
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>>
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>>>
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>>>
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
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
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>>
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>>>
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>>>
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
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
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>
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
fn min_length(self, value: u32) -> Self
Sets the value of the
min_length field.Source§fn max_length(self, value: u32) -> Self
fn max_length(self, value: u32) -> Self
Sets the value of the
max_length field.Source§fn content_encoding(self, value: impl Into<String>) -> Self
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
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>
impl<T, DS, AS, OS> TryFrom<StringDataSchemaBuilder<T>> for DataSchema<DS, AS, OS>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more