pub struct DomainModel {
pub classes: IndexMap<String, DomainClass>,
pub solution_class: Option<String>,
pub entity_classes: Vec<String>,
}Fields§
§classes: IndexMap<String, DomainClass>§solution_class: Option<String>§entity_classes: Vec<String>Implementations§
Source§impl DomainModel
impl DomainModel
pub fn new() -> Self
pub fn builder() -> DomainModelBuilder
pub fn get_class(&self, name: &str) -> Option<&DomainClass>
pub fn get_solution_class(&self) -> Option<&DomainClass>
pub fn get_entity_classes(&self) -> impl Iterator<Item = &DomainClass>
pub fn solution_class(&self) -> Option<&str>
pub fn to_dto(&self) -> IndexMap<String, DomainObjectDto>
pub fn validate(&self) -> Result<(), SolverForgeError>
Trait Implementations§
Source§impl Clone for DomainModel
impl Clone for DomainModel
Source§fn clone(&self) -> DomainModel
fn clone(&self) -> DomainModel
Returns a duplicate of the value. Read more
1.0.0 · 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 DomainModel
impl Debug for DomainModel
Source§impl Default for DomainModel
impl Default for DomainModel
Source§fn default() -> DomainModel
fn default() -> DomainModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DomainModel
impl<'de> Deserialize<'de> for DomainModel
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 DomainModel
impl RefUnwindSafe for DomainModel
impl Send for DomainModel
impl Sync for DomainModel
impl Unpin for DomainModel
impl UnwindSafe for DomainModel
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