pub struct InputSchema {
pub tables: BTreeMap<String, TableInput>,
pub views: BTreeMap<String, ViewInput>,
pub functions: BTreeMap<String, FunctionInput>,
pub extensions: BTreeMap<String, ExtensionInput>,
pub enums: BTreeMap<String, EnumInput>,
}Expand description
Authored YAML/JSON schema shape without internal lifecycle metadata.
SQL parsing, inspection, and migration replay use the runtime Schema
type directly because they need opaque/raw metadata. Authored structured
input uses this type first so internal fields cannot be injected through
normal YAML or JSON schema files.
Fields§
§tables: BTreeMap<String, TableInput>Authored table definitions keyed by table name.
views: BTreeMap<String, ViewInput>Authored view definitions keyed by view name.
functions: BTreeMap<String, FunctionInput>Authored function definitions keyed by function name.
extensions: BTreeMap<String, ExtensionInput>Authored extension definitions keyed by extension name.
enums: BTreeMap<String, EnumInput>Authored enum definitions keyed by enum name.
Implementations§
Source§impl InputSchema
impl InputSchema
Sourcepub fn into_schema(self) -> Schema
pub fn into_schema(self) -> Schema
Convert authored structured schema into runtime schema with empty lifecycle metadata.
Trait Implementations§
Source§impl Clone for InputSchema
impl Clone for InputSchema
Source§fn clone(&self) -> InputSchema
fn clone(&self) -> InputSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputSchema
impl Debug for InputSchema
Source§impl Default for InputSchema
impl Default for InputSchema
Source§fn default() -> InputSchema
fn default() -> InputSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputSchema
impl<'de> Deserialize<'de> for InputSchema
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
Source§impl PartialEq for InputSchema
impl PartialEq for InputSchema
impl StructuralPartialEq for InputSchema
Auto Trait Implementations§
impl Freeze for InputSchema
impl RefUnwindSafe for InputSchema
impl Send for InputSchema
impl Sync for InputSchema
impl Unpin for InputSchema
impl UnsafeUnpin for InputSchema
impl UnwindSafe for InputSchema
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