pub struct ActivityProviderApi { /* private fields */ }Implementations§
Source§impl ActivityProviderApi
Bindings for Provider part of the Activity API.
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)
Sourcepub async fn get_activity_agreement(&self, activity_id: &str) -> Result<String>
pub async fn get_activity_agreement(&self, activity_id: &str) -> Result<String>
Get agreement corresponding to the activity
Trait Implementations§
Source§impl Clone for ActivityProviderApi
impl Clone for ActivityProviderApi
Source§fn clone(&self) -> ActivityProviderApi
fn clone(&self) -> ActivityProviderApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl 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 Freeze for ActivityProviderApi
impl !RefUnwindSafe for ActivityProviderApi
impl !Send for ActivityProviderApi
impl !Sync for ActivityProviderApi
impl Unpin for ActivityProviderApi
impl !UnwindSafe for ActivityProviderApi
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