pub struct DynamicSnippetsApi<'a> { /* private fields */ }Expand description
Dynamic dispatch wrapper for the Snippets API.
Implementations§
Source§impl<'a> DynamicSnippetsApi<'a>
impl<'a> DynamicSnippetsApi<'a>
Sourcepub async fn create_snippet(
&self,
body: &Value,
) -> Result<SnippetEntity, NifiError>
pub async fn create_snippet( &self, body: &Value, ) -> Result<SnippetEntity, NifiError>
Creates a snippet. The snippet will be automatically discarded if not used in a subsequent request after 1 minute.
Sourcepub async fn delete_snippet(
&self,
id: &str,
disconnected_node_acknowledged: Option<bool>,
) -> Result<SnippetEntity, NifiError>
pub async fn delete_snippet( &self, id: &str, disconnected_node_acknowledged: Option<bool>, ) -> Result<SnippetEntity, NifiError>
Deletes the components in a snippet and discards the snippet
Sourcepub async fn update_snippet(
&self,
id: &str,
body: &Value,
) -> Result<SnippetEntity, NifiError>
pub async fn update_snippet( &self, id: &str, body: &Value, ) -> Result<SnippetEntity, NifiError>
Move’s the components in this Snippet into a new Process Group and discards the snippet
Auto Trait Implementations§
impl<'a> Freeze for DynamicSnippetsApi<'a>
impl<'a> !RefUnwindSafe for DynamicSnippetsApi<'a>
impl<'a> Send for DynamicSnippetsApi<'a>
impl<'a> Sync for DynamicSnippetsApi<'a>
impl<'a> Unpin for DynamicSnippetsApi<'a>
impl<'a> UnsafeUnpin for DynamicSnippetsApi<'a>
impl<'a> !UnwindSafe for DynamicSnippetsApi<'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