pub struct DataDocument {
pub source_path: String,
pub artifact_kind: DataArtifactKind,
pub database_name: Option<String>,
pub schema_name: Option<String>,
pub tables: Vec<DatabaseTable>,
pub migration: Option<MigrationMetadata>,
pub accesses: Vec<DataAccessObservation>,
pub frameworks: Vec<DataFramework>,
pub references: Vec<DataArtifactReference>,
pub owners: Vec<String>,
pub warnings: Vec<DataWarning>,
pub incomplete: bool,
}Expand description
Owned, serialization-ready output for one database-related source artifact.
Fields§
§source_path: StringRepository-relative source path.
artifact_kind: DataArtifactKindArtifact syntax selected from the path, filename, or source-language API.
database_name: Option<String>Explicit database or catalog name, when unambiguous.
schema_name: Option<String>Explicit schema name, when unambiguous.
tables: Vec<DatabaseTable>Deterministically sorted and merged table definitions.
migration: Option<MigrationMetadata>Migration ancestry and ordering hints.
accesses: Vec<DataAccessObservation>Deterministically sorted direct observations.
frameworks: Vec<DataFramework>Data-access libraries directly recognized in this artifact.
references: Vec<DataArtifactReference>Statically resolved references to query files or migration directories.
owners: Vec<String>Enclosing model or callable names.
warnings: Vec<DataWarning>Deterministically sorted extraction limitations.
incomplete: boolWhether dynamic, unsupported, malformed, or budget-limited input was observed.
Trait Implementations§
Source§impl Clone for DataDocument
impl Clone for DataDocument
Source§fn clone(&self) -> DataDocument
fn clone(&self) -> DataDocument
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 DataDocument
impl Debug for DataDocument
Source§impl<'de> Deserialize<'de> for DataDocument
impl<'de> Deserialize<'de> for DataDocument
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
impl Eq for DataDocument
Source§impl PartialEq for DataDocument
impl PartialEq for DataDocument
Source§impl Serialize for DataDocument
impl Serialize for DataDocument
impl StructuralPartialEq for DataDocument
Auto Trait Implementations§
impl Freeze for DataDocument
impl RefUnwindSafe for DataDocument
impl Send for DataDocument
impl Sync for DataDocument
impl Unpin for DataDocument
impl UnsafeUnpin for DataDocument
impl UnwindSafe for DataDocument
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.