Struct datamodel_renderer::configuration::Configuration
source · pub struct Configuration<'a> { /* private fields */ }
Expand description
The configuration part of a data model. First the generators, then the datasources.
Implementations§
source§impl<'a> Configuration<'a>
impl<'a> Configuration<'a>
sourcepub fn push_generator(&mut self, generator: Generator<'a>)
pub fn push_generator(&mut self, generator: Generator<'a>)
Add a new generator to the configuration.
sourcepub fn push_datasource(&mut self, datasource: Datasource<'a>)
pub fn push_datasource(&mut self, datasource: Datasource<'a>)
Add a new datasource to the configuration.
sourcepub fn from_psl(
psl_cfg: &'a Configuration,
force_namespaces: Option<&'a [String]>
) -> Self
pub fn from_psl( psl_cfg: &'a Configuration, force_namespaces: Option<&'a [String]> ) -> Self
Create a rendering from a PSL datasource.
Trait Implementations§
source§impl<'a> Debug for Configuration<'a>
impl<'a> Debug for Configuration<'a>
source§impl<'a> Default for Configuration<'a>
impl<'a> Default for Configuration<'a>
source§fn default() -> Configuration<'a>
fn default() -> Configuration<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Configuration<'a>
impl<'a> Send for Configuration<'a>
impl<'a> Sync for Configuration<'a>
impl<'a> Unpin for Configuration<'a>
impl<'a> UnwindSafe for Configuration<'a>
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