pub struct ModelSchema<'a> {
pub id: &'a str,
pub params: &'a [ParamDescriptor],
pub stats: &'a [StatDescriptor],
pub actions: &'a [ActionDescriptor],
}Expand description
Declarations of a model, as a plan checks a spec against them.
Fields§
§id: &'a strId of the model.
params: &'a [ParamDescriptor]Parameters the model declares.
stats: &'a [StatDescriptor]Stats the model declares.
actions: &'a [ActionDescriptor]Actions the model declares.
Trait Implementations§
Source§impl<'a> Clone for ModelSchema<'a>
impl<'a> Clone for ModelSchema<'a>
impl<'a> Copy for ModelSchema<'a>
Auto Trait Implementations§
impl<'a> Freeze for ModelSchema<'a>
impl<'a> RefUnwindSafe for ModelSchema<'a>
impl<'a> Send for ModelSchema<'a>
impl<'a> Sync for ModelSchema<'a>
impl<'a> Unpin for ModelSchema<'a>
impl<'a> UnsafeUnpin for ModelSchema<'a>
impl<'a> UnwindSafe for ModelSchema<'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