pub struct ViewFoldersClient { /* private fields */ }Expand description
The ViewFolders API client. Read more at https://coralogix.com/docs/user-guides/monitoring-and-insights/explore-screen/custom-views/
Implementations§
Source§impl ViewFoldersClient
impl ViewFoldersClient
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 ViewFolders API.
§Arguments
auth_context- TheAuthContextto use for authentication.region- TheCoralogixRegionto connect to.
Sourcepub async fn create(
&self,
folder: ViewFolder,
) -> Result<CreateViewFolderResponse>
pub async fn create( &self, folder: ViewFolder, ) -> Result<CreateViewFolderResponse>
Sourcepub async fn replace(
&self,
folder: ViewFolder,
) -> Result<ReplaceViewFolderResponse>
pub async fn replace( &self, folder: ViewFolder, ) -> Result<ReplaceViewFolderResponse>
Replaces the existing ViewFolder identified by its id.
§Arguments
folder- The view folder to replace.
Sourcepub async fn delete(&self, id: String) -> Result<DeleteViewFolderResponse>
pub async fn delete(&self, id: String) -> Result<DeleteViewFolderResponse>
Sourcepub async fn list(&self) -> Result<Vec<ViewFolder>>
pub async fn list(&self) -> Result<Vec<ViewFolder>>
Auto Trait Implementations§
impl !Freeze for ViewFoldersClient
impl !RefUnwindSafe for ViewFoldersClient
impl Send for ViewFoldersClient
impl Sync for ViewFoldersClient
impl Unpin for ViewFoldersClient
impl UnsafeUnpin for ViewFoldersClient
impl !UnwindSafe for ViewFoldersClient
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