pub struct NodeConfig<'a> {
pub id: &'a str,
pub class: Option<String>,
pub shape: Shape,
pub inner_text: &'a str,
}Expand description
A struct representing the possible attributes for a Node.
Fields§
§id: &'a strThe ID that will be assigned to this node
class: Option<String>An optional class name to assign to the node
shape: ShapeThe shape of the node
inner_text: &'a strThe text to be displayed within the node
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NodeConfig<'a>
impl<'a> RefUnwindSafe for NodeConfig<'a>
impl<'a> Send for NodeConfig<'a>
impl<'a> Sync for NodeConfig<'a>
impl<'a> Unpin for NodeConfig<'a>
impl<'a> UnwindSafe for NodeConfig<'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