pub struct Participant {
pub id: String,
pub label: String,
}Expand description
A participant (or actor) in a sequence diagram.
Fields§
§id: StringThe identifier used in message lines (e.g. A).
label: StringThe display label shown in the participant box (defaults to id when
no as <alias> clause is given).
Implementations§
Trait Implementations§
Source§impl Clone for Participant
impl Clone for Participant
Source§fn clone(&self) -> Participant
fn clone(&self) -> Participant
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 Participant
impl Debug for Participant
Source§impl PartialEq for Participant
impl PartialEq for Participant
Source§fn eq(&self, other: &Participant) -> bool
fn eq(&self, other: &Participant) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Participant
impl StructuralPartialEq for Participant
Auto Trait Implementations§
impl Freeze for Participant
impl RefUnwindSafe for Participant
impl Send for Participant
impl Sync for Participant
impl Unpin for Participant
impl UnsafeUnpin for Participant
impl UnwindSafe for Participant
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