#[non_exhaustive]pub enum LabelsApiDispatch<'a> {
V2_6_0(V2_6_0LabelsApi<'a>),
V2_7_2(V2_7_2LabelsApi<'a>),
V2_8_0(V2_8_0LabelsApi<'a>),
}Expand description
Dynamic dispatch enum for the Labels API. Use via the LabelsApi trait.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl LabelsApi for LabelsApiDispatch<'_>
impl LabelsApi for LabelsApiDispatch<'_>
Source§async fn remove_label(
&self,
id: &str,
version: Option<&str>,
client_id: Option<&str>,
disconnected_node_acknowledged: Option<bool>,
) -> Result<LabelEntity, NifiError>
async fn remove_label( &self, id: &str, version: Option<&str>, client_id: Option<&str>, disconnected_node_acknowledged: Option<bool>, ) -> Result<LabelEntity, NifiError>
Deletes a label Read more
Source§async fn update_label(
&self,
id: &str,
body: &LabelEntity,
) -> Result<LabelEntity, NifiError>
async fn update_label( &self, id: &str, body: &LabelEntity, ) -> Result<LabelEntity, NifiError>
Updates a label Read more
Auto Trait Implementations§
impl<'a> Freeze for LabelsApiDispatch<'a>
impl<'a> !RefUnwindSafe for LabelsApiDispatch<'a>
impl<'a> Send for LabelsApiDispatch<'a>
impl<'a> Sync for LabelsApiDispatch<'a>
impl<'a> Unpin for LabelsApiDispatch<'a>
impl<'a> UnsafeUnpin for LabelsApiDispatch<'a>
impl<'a> !UnwindSafe for LabelsApiDispatch<'a>
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