pub struct Diagram {
pub title: Option<String>,
pub items: Vec<Item>,
pub options: DiagramOptions,
}Expand description
A complete sequence diagram
Fields§
§title: Option<String>Optional title
items: Vec<Item>Diagram items (messages, notes, blocks, etc.)
options: DiagramOptionsDiagram options
Implementations§
Source§impl Diagram
impl Diagram
Sourcepub fn participants(&self) -> Vec<Participant>
pub fn participants(&self) -> Vec<Participant>
Extract all participants from the diagram in order of appearance
Trait Implementations§
impl StructuralPartialEq for Diagram
Auto Trait Implementations§
impl Freeze for Diagram
impl RefUnwindSafe for Diagram
impl Send for Diagram
impl Sync for Diagram
impl Unpin for Diagram
impl UnwindSafe for Diagram
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