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- TheAuthContextto use for authentication.region- TheCoralogixRegionto 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 UnsafeUnpin 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