pub struct ActivityOutput { /* private fields */ }Expand description
One representation produced by an activity.
Implementations§
Source§impl ActivityOutput
impl ActivityOutput
Sourcepub const fn new(
representation_id: RepresentationId,
role: Option<ActivityRole>,
) -> Self
pub const fn new( representation_id: RepresentationId, role: Option<ActivityRole>, ) -> Self
Creates an activity output with an optional extensible role.
Sourcepub const fn representation_id(&self) -> RepresentationId
pub const fn representation_id(&self) -> RepresentationId
Returns the produced representation.
Sourcepub const fn role(&self) -> Option<&ActivityRole>
pub const fn role(&self) -> Option<&ActivityRole>
Returns the optional semantic output role.
Trait Implementations§
Source§impl Clone for ActivityOutput
impl Clone for ActivityOutput
Source§fn clone(&self) -> ActivityOutput
fn clone(&self) -> ActivityOutput
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 ActivityOutput
impl Debug for ActivityOutput
impl Eq for ActivityOutput
Source§impl Ord for ActivityOutput
impl Ord for ActivityOutput
Source§fn cmp(&self, other: &ActivityOutput) -> Ordering
fn cmp(&self, other: &ActivityOutput) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ActivityOutput
impl PartialEq for ActivityOutput
Source§fn eq(&self, other: &ActivityOutput) -> bool
fn eq(&self, other: &ActivityOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ActivityOutput
impl PartialOrd for ActivityOutput
impl StructuralPartialEq for ActivityOutput
Auto Trait Implementations§
impl Freeze for ActivityOutput
impl RefUnwindSafe for ActivityOutput
impl Send for ActivityOutput
impl Sync for ActivityOutput
impl Unpin for ActivityOutput
impl UnsafeUnpin for ActivityOutput
impl UnwindSafe for ActivityOutput
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