Trait StringDataSchemaBuilderLike

Source
pub trait StringDataSchemaBuilderLike<DS, AS, OS> {
    // Required methods
    fn min_length(self, value: u32) -> Self;
    fn max_length(self, value: u32) -> Self;
    fn pattern(self, value: impl Into<String>) -> Self;
    fn content_encoding(self, value: impl Into<String>) -> Self;
    fn content_media_type(self, value: impl Into<String>) -> Self;
}
Expand description

An interface for things behaving like a string data schema builder.

Required Methods§

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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