Skip to main content

ProjectSources

Struct ProjectSources 

Source
pub struct ProjectSources {
    pub wren_project_yml: String,
    pub model_ymls: Vec<String>,
    pub relationships_yml: Option<String>,
    pub cubes_yml: Option<String>,
    pub cube_ymls: Vec<String>,
    pub views: Vec<(String, String)>,
    pub knowledge_sql_mds: Vec<(String, String)>,
    pub dashboards_yml: Option<String>,
}
Expand description

The raw file contents of a wren project, read by the host. assemble operates purely over these bytes (WASM-friendly); the native read_project_dir convenience fills them from disk.

Fields§

§wren_project_yml: String§model_ymls: Vec<String>§relationships_yml: Option<String>§cubes_yml: Option<String>§cube_ymls: Vec<String>

Per-cube cubes/<name>/metadata.yml contents (wren CLI layout). Used only when cubes_yml is None — a root cubes.yml takes precedence.

§views: Vec<(String, String)>

Each view as (metadata.yml, sql.yml) contents.

§knowledge_sql_mds: Vec<(String, String)>

Confirmed saved queries from the wren CLI’s knowledge/sql/<slug>.md store, as (slug, file contents). Consumer sources: they never enter the MDL manifest — they only enrich the lineage graph with query:<slug> consumer nodes.

§dashboards_yml: Option<String>

The root dashboards.yml contents (the minimal declarative dashboard-spec convention: dashboards[].name + panels[].sql or panels[].cube+measures). Consumer source, like knowledge_sql_mds.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.