pub struct Interface {
pub name: String,
pub type_params: Vec<String>,
pub roles: Vec<String>,
pub events: Vec<InterfaceEventsList>,
pub objects: Vec<InterfaceObject>,
pub config: Vec<InterfaceConfigList>,
pub required_impls: Vec<InterfaceRequiredImplsList>,
pub methods: Vec<ObjectMethodsList>,
pub state: Vec<InterfaceState>,
}Fields§
§name: String§type_params: Vec<String>§roles: Vec<String>§events: Vec<InterfaceEventsList>§objects: Vec<InterfaceObject>§config: Vec<InterfaceConfigList>§required_impls: Vec<InterfaceRequiredImplsList>§methods: Vec<ObjectMethodsList>§state: Vec<InterfaceState>Implementations§
Source§impl Interface
impl Interface
pub fn requires_impls_for_role(&self, role_name: &str) -> bool
pub fn has_public_event_impls_for_role(&self, role_name: &str) -> bool
pub fn has_private_event_impls_for_role(&self, role_name: &str) -> bool
pub fn has_methods_for_role(&self, role_name: &str) -> bool
pub fn has_impls_for_role(&self, role_name: &str) -> bool
pub fn has_config_for_role(&self, role_name: &str) -> bool
pub fn has_state(&self, db: &Database) -> bool
Trait Implementations§
impl Eq for Interface
impl StructuralPartialEq for Interface
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnsafeUnpin for Interface
impl UnwindSafe for Interface
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