pub struct ExecutionLinks {
pub itself: String,
pub events: String,
pub cancel: String,
pub websocket: String,
pub cockpit: String,
}Expand description
Where to read more about one execution, in this server’s own terms.
Every value is derived from the registry’s declared routes and from the live channel’s own constant, so a route that moves moves here too and no client holds a path this server does not serve.
Fields§
§itself: StringThe snapshot: GET /api/v1/executions/get?id=….
events: StringThe retained history: GET /api/v1/executions/events?id=….
cancel: StringWhere to ask it to stop: POST /api/v1/executions/cancel.
websocket: StringThe live channel, from the beginning: GET /events?execution=….
cockpit: StringThe page a person opens.
Implementations§
Source§impl ExecutionLinks
impl ExecutionLinks
Sourcepub fn of(ctx: &Context, id: &ExecutionId) -> Self
pub fn of(ctx: &Context, id: &ExecutionId) -> Self
The links for one execution, built from what the registry declares.
Trait Implementations§
Source§impl Clone for ExecutionLinks
impl Clone for ExecutionLinks
Source§fn clone(&self) -> ExecutionLinks
fn clone(&self) -> ExecutionLinks
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 ExecutionLinks
impl Debug for ExecutionLinks
Source§impl<'de> Deserialize<'de> for ExecutionLinks
impl<'de> Deserialize<'de> for ExecutionLinks
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ExecutionLinks
impl JsonSchema for ExecutionLinks
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ExecutionLinks
impl RefUnwindSafe for ExecutionLinks
impl Send for ExecutionLinks
impl Sync for ExecutionLinks
impl Unpin for ExecutionLinks
impl UnsafeUnpin for ExecutionLinks
impl UnwindSafe for ExecutionLinks
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