pub struct ActionsClient { /* private fields */ }
Expand description
The Actions API client. Read more at https://coralogix.com/docs/coralogix-action-extension/
Implementations§
source§impl ActionsClient
impl ActionsClient
sourcepub fn new(auth_context: AuthContext, region: CoralogixRegion) -> Result<Self>
pub fn new(auth_context: AuthContext, region: CoralogixRegion) -> Result<Self>
Creates a new client for the Actions API.
§Arguments
auth_context
- TheAuthContext
to use for authentication.region
- TheCoralogixRegion
to connect to.
sourcepub async fn create(&self, action: Action) -> Result<CreateActionResponse>
pub async fn create(&self, action: Action) -> Result<CreateActionResponse>
sourcepub async fn replace(&self, action: Action) -> Result<ReplaceActionResponse>
pub async fn replace(&self, action: Action) -> Result<ReplaceActionResponse>
sourcepub async fn delete(&self, action_id: String) -> Result<DeleteActionResponse>
pub async fn delete(&self, action_id: String) -> Result<DeleteActionResponse>
Auto Trait Implementations§
impl !Freeze for ActionsClient
impl !RefUnwindSafe for ActionsClient
impl Send for ActionsClient
impl Sync for ActionsClient
impl Unpin for ActionsClient
impl !UnwindSafe for ActionsClient
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request