pub struct DirectiveContext {
pub attrs: BTreeMap<String, String>,
pub content: String,
pub label: String,
pub id: String,
}Expand description
The render inputs for a single directive instance.
Fields§
§attrs: BTreeMap<String, String>§content: StringRendered inner HTML (block form); empty for leaf form.
label: StringThe [label] text (leaf form); empty for block form.
id: StringUnique per-instance id for island wiring.
Trait Implementations§
Source§impl Clone for DirectiveContext
impl Clone for DirectiveContext
Source§fn clone(&self) -> DirectiveContext
fn clone(&self) -> DirectiveContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DirectiveContext
impl Debug for DirectiveContext
Auto Trait Implementations§
impl Freeze for DirectiveContext
impl RefUnwindSafe for DirectiveContext
impl Send for DirectiveContext
impl Sync for DirectiveContext
impl Unpin for DirectiveContext
impl UnsafeUnpin for DirectiveContext
impl UnwindSafe for DirectiveContext
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