#[non_exhaustive]pub enum Schema {
StructSchema(Box<Struct>),
JsonSchema(String),
}Available on crate features
data-store-service or schema-service only.Expand description
Schema representation. One of
struct_schema or
json_schema should be
provided otherwise an INVALID_ARGUMENT error is thrown.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
StructSchema(Box<Struct>)
The structured representation of the schema.
JsonSchema(String)
The JSON representation of the schema.
Trait Implementations§
impl StructuralPartialEq for Schema
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
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