pub struct StreamsResource<'c> { /* private fields */ }Expand description
client.streams() — compile + deploy StreamBuilder pipelines.
Sugar over client.pipelines().create() — the compile happens client-side,
the deploy is the same POST.
Implementations§
Source§impl<'c> StreamsResource<'c>
impl<'c> StreamsResource<'c>
Sourcepub fn compile(&self, builder: &StreamBuilder) -> Result<Value, PulseError>
pub fn compile(&self, builder: &StreamBuilder) -> Result<Value, PulseError>
Compile the builder to a pipeline dict WITHOUT deploying.
Sourcepub fn compile_with_name(
&self,
builder: &StreamBuilder,
name: &str,
) -> Result<Value, PulseError>
pub fn compile_with_name( &self, builder: &StreamBuilder, name: &str, ) -> Result<Value, PulseError>
Compile with a name override WITHOUT deploying.
Sourcepub async fn deploy(&self, builder: &StreamBuilder) -> Result<Value, PulseError>
pub async fn deploy(&self, builder: &StreamBuilder) -> Result<Value, PulseError>
Compile + POST to /api/pulse/pipelines. Returns the server response.
Sourcepub async fn deploy_with_name(
&self,
builder: &StreamBuilder,
name: &str,
) -> Result<Value, PulseError>
pub async fn deploy_with_name( &self, builder: &StreamBuilder, name: &str, ) -> Result<Value, PulseError>
Compile with a name override + POST to /api/pulse/pipelines.
Trait Implementations§
Auto Trait Implementations§
impl<'c> Freeze for StreamsResource<'c>
impl<'c> !RefUnwindSafe for StreamsResource<'c>
impl<'c> Send for StreamsResource<'c>
impl<'c> Sync for StreamsResource<'c>
impl<'c> Unpin for StreamsResource<'c>
impl<'c> UnsafeUnpin for StreamsResource<'c>
impl<'c> !UnwindSafe for StreamsResource<'c>
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