Struct ockam_api::cloud::MessagingClient
source · [−]pub struct MessagingClient { /* private fields */ }Implementations
sourceimpl MessagingClient
impl MessagingClient
pub async fn new(route: Route, ctx: &Context) -> Result<Self>
sourcepub async fn enroll_auth0<'a, S>(
&mut self,
identifier: String,
auth0_service: S
) -> Result<()> where
S: TokenProvider<'a, T = Auth0Token<'a>>,
pub async fn enroll_auth0<'a, S>(
&mut self,
identifier: String,
auth0_service: S
) -> Result<()> where
S: TokenProvider<'a, T = Auth0Token<'a>>,
Executes an enrollment process to generate a new set of access tokens using the auth0 flow.
sourcepub async fn enroll_enrollment_token(
&mut self,
identifier: String
) -> Result<()>
pub async fn enroll_enrollment_token(
&mut self,
identifier: String
) -> Result<()>
Executes an enrollment process to generate a new set of access tokens using the enrollment token flow.
pub async fn create_invitation(
&mut self,
body: CreateInvitation<'_>
) -> Result<Invitation<'_>>
pub async fn list_invitations(
&mut self,
email: &str
) -> Result<Vec<Invitation<'_>>>
pub async fn accept_invitations(
&mut self,
email: &str,
invitation_id: &str
) -> Result<()>
pub async fn reject_invitations(
&mut self,
email: &str,
invitation_id: &str
) -> Result<()>
pub async fn create_space(&mut self, body: CreateSpace<'_>) -> Result<Space<'_>>
pub async fn list_spaces(&mut self) -> Result<Vec<Space<'_>>>
pub async fn get_space(&mut self, space_id: &str) -> Result<Space<'_>>
pub async fn get_space_by_name(&mut self, space_name: &str) -> Result<Space<'_>>
pub async fn delete_space(&mut self, space_id: &str) -> Result<()>
pub async fn create_project(
&mut self,
space_id: &str,
body: CreateProject<'_>
) -> Result<Project<'_>>
pub async fn list_projects(
&mut self,
space_id: &str
) -> Result<Vec<Project<'_>>>
pub async fn get_project(
&mut self,
space_id: &str,
project_id: &str
) -> Result<Project<'_>>
pub async fn get_project_by_name(
&mut self,
space_id: &str,
project_name: &str
) -> Result<Project<'_>>
pub async fn delete_project(
&mut self,
space_id: &str,
project_id: &str
) -> Result<()>
Trait Implementations
sourceimpl TokenAuthenticatorService for MessagingClient
impl TokenAuthenticatorService for MessagingClient
fn authenticate<'a, 'life0, 'async_trait>(
&'life0 mut self,
body: AuthorizedToken<'a>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
sourceimpl<'a> TokenProvider<'a> for MessagingClient
impl<'a> TokenProvider<'a> for MessagingClient
Auto Trait Implementations
impl !RefUnwindSafe for MessagingClient
impl Send for MessagingClient
impl Sync for MessagingClient
impl Unpin for MessagingClient
impl !UnwindSafe for MessagingClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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 T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
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