Struct ya_client::activity::ActivityRequestorStateApi
source · [−]pub struct ActivityRequestorStateApi { /* private fields */ }Expand description
Bindings for Requestor State part of the Activity API.
Implementations
sourceimpl ActivityRequestorStateApi
impl ActivityRequestorStateApi
sourcepub async fn get_running_command(
&self,
activity_id: &str
) -> Result<ExeScriptCommandState>
pub async fn get_running_command(
&self,
activity_id: &str
) -> Result<ExeScriptCommandState>
Get running command for a specified Activity.
sourcepub async fn get_state(&self, activity_id: &str) -> Result<ActivityState>
pub async fn get_state(&self, activity_id: &str) -> Result<ActivityState>
Get state of specified Activity.
sourcepub async fn get_usage(&self, activity_id: &str) -> Result<ActivityUsage>
pub async fn get_usage(&self, activity_id: &str) -> Result<ActivityUsage>
Get usage of specified Activity.
Trait Implementations
sourceimpl Clone for ActivityRequestorStateApi
impl Clone for ActivityRequestorStateApi
sourcefn clone(&self) -> ActivityRequestorStateApi
fn clone(&self) -> ActivityRequestorStateApi
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl WebInterface for ActivityRequestorStateApi
impl WebInterface for ActivityRequestorStateApi
const API_URL_ENV_VAR: &'static str = crate::activity::ACTIVITY_URL_ENV_VAR
const API_SUFFIX: &'static str = ACTIVITY_API_PATH
fn from_client(client: WebClient) -> Self
fn rebase_service_url(base_url: Rc<Url>) -> Result<Rc<Url>>
Auto Trait Implementations
impl !RefUnwindSafe for ActivityRequestorStateApi
impl !Send for ActivityRequestorStateApi
impl !Sync for ActivityRequestorStateApi
impl Unpin for ActivityRequestorStateApi
impl !UnwindSafe for ActivityRequestorStateApi
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more