Struct ya_client::activity::ActivityProviderApi
source · [−]pub struct ActivityProviderApi { /* private fields */ }Implementations
sourceimpl ActivityProviderApi
impl ActivityProviderApi
Bindings for Provider part of the Activity API.
sourcepub async fn get_activity_ids(&self) -> Result<Vec<String>>
pub async fn get_activity_ids(&self) -> Result<Vec<String>>
Fetch list of activity_ids
sourcepub async fn get_activity_state(
&self,
activity_id: &str
) -> Result<ActivityState>
pub async fn get_activity_state(
&self,
activity_id: &str
) -> Result<ActivityState>
Fetch activity state (which may include error details)
sourcepub async fn set_activity_state(
&self,
activity_id: &str,
state: &ActivityState
) -> Result<()>
pub async fn set_activity_state(
&self,
activity_id: &str,
state: &ActivityState
) -> Result<()>
Set state of specified Activity.
sourcepub async fn get_activity_usage(
&self,
activity_id: &str
) -> Result<ActivityUsage>
pub async fn get_activity_usage(
&self,
activity_id: &str
) -> Result<ActivityUsage>
Fetch current activity usage (which may include error details)
Trait Implementations
sourceimpl Clone for ActivityProviderApi
impl Clone for ActivityProviderApi
sourcefn clone(&self) -> ActivityProviderApi
fn clone(&self) -> ActivityProviderApi
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 ActivityProviderApi
impl WebInterface for ActivityProviderApi
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 ActivityProviderApi
impl !Send for ActivityProviderApi
impl !Sync for ActivityProviderApi
impl Unpin for ActivityProviderApi
impl !UnwindSafe for ActivityProviderApi
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