pub struct SchemaBuilder {
pub name: Option<String>,
pub description: Option<String>,
pub owner: Option<String>,
pub properties: Vec<PropertyDefinition>,
}Expand description
Builder used to create a Schema
Fields
name: Option<String>description: Option<String>owner: Option<String>properties: Vec<PropertyDefinition>Implementations
sourceimpl SchemaBuilder
impl SchemaBuilder
pub fn new() -> Self
pub fn with_name(self, name: String) -> SchemaBuilder
pub fn with_description(self, description: String) -> SchemaBuilder
pub fn with_owner(self, owner: String) -> SchemaBuilder
pub fn with_properties(
self,
properties: Vec<PropertyDefinition>
) -> SchemaBuilder
pub fn build(self) -> Result<Schema, SchemaBuildError>
Trait Implementations
sourceimpl Clone for SchemaBuilder
impl Clone for SchemaBuilder
sourcefn clone(&self) -> SchemaBuilder
fn clone(&self) -> SchemaBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Default for SchemaBuilder
impl Default for SchemaBuilder
sourcefn default() -> SchemaBuilder
fn default() -> SchemaBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SchemaBuilder
impl Send for SchemaBuilder
impl Sync for SchemaBuilder
impl Unpin for SchemaBuilder
impl UnwindSafe for SchemaBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more