pub struct SchemaDefinition { /* private fields */ }Implementations§
Source§impl SchemaDefinition
impl SchemaDefinition
pub fn new() -> Self
pub fn add_field(self, field: FieldDefinition) -> Self
pub fn with_fields(self, fields: Vec<FieldDefinition>) -> Self
pub fn remove_field(self, idx: usize) -> Self
Trait Implementations§
Source§impl Into<SchemaDefinition> for SchemaDefinition
impl Into<SchemaDefinition> for SchemaDefinition
Source§fn into(self) -> PbSchemaDefinition
fn into(self) -> PbSchemaDefinition
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for SchemaDefinition
impl RefUnwindSafe for SchemaDefinition
impl Send for SchemaDefinition
impl Sync for SchemaDefinition
impl Unpin for SchemaDefinition
impl UnsafeUnpin for SchemaDefinition
impl UnwindSafe for SchemaDefinition
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