pub struct ActivityInput { /* private fields */ }Expand description
One representation consumed by an activity.
Implementations§
Source§impl ActivityInput
impl ActivityInput
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 input with an optional extensible role.
Sourcepub const fn representation_id(&self) -> RepresentationId
pub const fn representation_id(&self) -> RepresentationId
Returns the consumed representation.
Sourcepub const fn role(&self) -> Option<&ActivityRole>
pub const fn role(&self) -> Option<&ActivityRole>
Returns the optional semantic input role.
Trait Implementations§
Source§impl Clone for ActivityInput
impl Clone for ActivityInput
Source§fn clone(&self) -> ActivityInput
fn clone(&self) -> ActivityInput
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 ActivityInput
impl Debug for ActivityInput
impl Eq for ActivityInput
Source§impl Ord for ActivityInput
impl Ord for ActivityInput
Source§fn cmp(&self, other: &ActivityInput) -> Ordering
fn cmp(&self, other: &ActivityInput) -> 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 ActivityInput
impl PartialEq for ActivityInput
Source§fn eq(&self, other: &ActivityInput) -> bool
fn eq(&self, other: &ActivityInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ActivityInput
impl PartialOrd for ActivityInput
impl StructuralPartialEq for ActivityInput
Auto Trait Implementations§
impl Freeze for ActivityInput
impl RefUnwindSafe for ActivityInput
impl Send for ActivityInput
impl Sync for ActivityInput
impl Unpin for ActivityInput
impl UnsafeUnpin for ActivityInput
impl UnwindSafe for ActivityInput
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