pub struct OperationsController { /* private fields */ }Expand description
The routes of operations, under {http.api_prefix}/operations
(default /api/operations). They mount when queue.operations.routes
is true (the default) and the app has DatabaseModule and an
authenticator. Every route needs a signed-in user; an operation is
visible to its owner and to holders of operations.view (app-wide or
in its workspace), and is a 404 to everyone else.
| Route | Answer |
|---|---|
GET /operations?limit=20 | {data: [Operation]}: the user’s own operations, newest first |
GET /operations/{id} | the operation |
GET /operations/{id}/events | text/event-stream: an operation event now and after every change; ends after the finished state |
DELETE /operations/{id} | the operation, cancelled (owner or operations.cancel; 409 operation_finished once finished) |
Trait Implementations§
Source§impl Controller for OperationsController
impl Controller for OperationsController
Source§impl Injectable for OperationsController
impl Injectable for OperationsController
Source§fn dependencies() -> Vec<ProviderKey>
fn dependencies() -> Vec<ProviderKey>
The keys
construct resolves, used by the boot-time graph check.
Keys resolved through Lazy are left out.Auto Trait Implementations§
impl !RefUnwindSafe for OperationsController
impl !UnwindSafe for OperationsController
impl Forget for OperationsController
impl Freeze for OperationsController
impl Send for OperationsController
impl Sync for OperationsController
impl Unpin for OperationsController
impl UnsafeUnpin for OperationsController
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ValueFor<Option<T>> for T
impl<T> ValueFor<Option<T>> for T
Source§fn into_value_for(self) -> Option<T>
fn into_value_for(self) -> Option<T>
The value as the column’s type.