pub enum Item {
ParticipantDecl {
name: String,
alias: Option<String>,
kind: ParticipantKind,
},
Message {
from: String,
to: String,
text: String,
arrow: Arrow,
activate: bool,
deactivate: bool,
create: bool,
},
Note {
position: NotePosition,
participants: Vec<String>,
text: String,
},
Activate {
participant: String,
},
Deactivate {
participant: String,
},
Destroy {
participant: String,
},
Block {
kind: BlockKind,
label: String,
items: Vec<Item>,
else_items: Option<Vec<Item>>,
},
Autonumber {
enabled: bool,
start: Option<u32>,
},
State {
participants: Vec<String>,
text: String,
},
Ref {
participants: Vec<String>,
text: String,
input_from: Option<String>,
input_label: Option<String>,
output_to: Option<String>,
output_label: Option<String>,
},
DiagramOption {
key: String,
value: String,
},
Description {
text: String,
},
}Expand description
A diagram item
Variants§
ParticipantDecl
Participant declaration
Message
Message between participants
Fields
Note
Note
Activate
Activate a participant
Deactivate
Deactivate a participant
Destroy
Destroy a participant
Block
Block (alt, opt, loop, par)
Autonumber
Autonumber control
State
State box (rounded rectangle)
Ref
Reference box
Fields
DiagramOption
Diagram option
Description
Extended text description (indented comment)
Trait Implementations§
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
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