pub struct SpaceBody {
pub types: Vec<TypeDecl>,
pub state: StateBlock,
pub capabilities: Option<CapabilitiesBlock>,
pub credentials: Option<CredentialsBlock>,
pub derived: Option<DerivedBlock>,
pub invariants: Vec<InvariantDecl>,
pub actions: Vec<ActionDecl>,
pub views: Vec<ViewDecl>,
pub update: Option<UpdateDecl>,
pub handle_event: Option<HandleEventDecl>,
pub span: Span,
}Expand description
The body of a space declaration — blocks in enforced order.
Block ordering: types → state → capabilities → credentials → derived → invariants → actions → views → update → handleEvent
Fields§
§types: Vec<TypeDecl>§state: StateBlock§capabilities: Option<CapabilitiesBlock>§credentials: Option<CredentialsBlock>§derived: Option<DerivedBlock>§invariants: Vec<InvariantDecl>§actions: Vec<ActionDecl>§views: Vec<ViewDecl>§update: Option<UpdateDecl>§handle_event: Option<HandleEventDecl>§span: SpanTrait Implementations§
Source§impl<'de> Deserialize<'de> for SpaceBody
impl<'de> Deserialize<'de> for SpaceBody
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 StructuralPartialEq for SpaceBody
Auto Trait Implementations§
impl Freeze for SpaceBody
impl RefUnwindSafe for SpaceBody
impl Send for SpaceBody
impl Sync for SpaceBody
impl Unpin for SpaceBody
impl UnwindSafe for SpaceBody
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