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§
Sourcefn min_length(self, value: u32) -> Self
fn min_length(self, value: u32) -> Self
Sets the value of the min_length
field.
Sourcefn max_length(self, value: u32) -> Self
fn max_length(self, value: u32) -> Self
Sets the value of the max_length
field.
Sourcefn 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.
Sourcefn 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.
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.