pub struct RoleDecl {
pub name: String,
pub doc: String,
pub binds: Affordance,
pub variants: Vec<Variant>,
}Expand description
One KB-level role: this KB’s own vocabulary, declared once and adoptable by any kind. STRICT: a Badge role carries the shared variant vocabulary (with tones) and every adopting field must match it exactly — that agreement is what makes cross-kind treatment (badges, views) coherent.
Fields§
§name: String§doc: StringCuration intent for the concept, written once for the whole KB.
binds: AffordanceThe engine affordance this role maps onto.
variants: Vec<Variant>Badge roles: the shared variants, each with its tone.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RoleDecl
impl<'de> Deserialize<'de> for RoleDecl
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 RoleDecl
impl RefUnwindSafe for RoleDecl
impl Send for RoleDecl
impl Sync for RoleDecl
impl Unpin for RoleDecl
impl UnsafeUnpin for RoleDecl
impl UnwindSafe for RoleDecl
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