pub struct SchemaDef {
pub name: String,
pub version: i32,
pub schema_type: String,
pub data: Value,
pub external_ref: bool,
pub create_time: Option<i64>,
pub created_by: Option<String>,
pub update_time: Option<i64>,
pub updated_by: Option<String>,
}Expand description
Schema definition.
Fields§
§name: StringSchema name.
version: i32Schema version.
schema_type: StringSchema type (e.g., “JSON”).
data: ValueThe actual schema definition (JSON Schema).
external_ref: boolWhether this schema is used for external storage.
create_time: Option<i64>Create time.
created_by: Option<String>Created by.
update_time: Option<i64>Update time.
updated_by: Option<String>Updated by.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SchemaDef
impl<'de> Deserialize<'de> for SchemaDef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SchemaDef
impl RefUnwindSafe for SchemaDef
impl Send for SchemaDef
impl Sync for SchemaDef
impl Unpin for SchemaDef
impl UnsafeUnpin for SchemaDef
impl UnwindSafe for SchemaDef
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