Struct webthing::action::BaseAction

source ·
pub struct BaseAction { /* private fields */ }
Expand description

Basic action implementation.

An Action represents an individual action which can be performed on a thing.

This can easily be used by other actions to handle most of the boring work.

Implementations

Create a new BaseAction.

id – ID of this action name – name of the action input – any action inputs

Trait Implementations

An Action represents an individual action on a thing.

Set the prefix of any hrefs associated with this action.

prefix – the prefix

Get this action’s ID.

Get this action’s name.

Get this action’s href.

Get this action’s status.

Get the thing associated with this action.

Get the time the action was requested.

Get the time the action was completed.

Get the inputs for this action.

Set the status of this action.

status – new status

Start performing the action.

Override this with the code necessary to perform the action.

Override this with the code necessary to cancel the action.

Finish performing the action.

Get the action description. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.