pub struct CreateStreamCommand {
pub session_id: SessionIdDto,
pub source_data: Value,
pub config: Option<StreamConfig>,
}
Expand description
Create new stream within a session
Fields§
§session_id: SessionIdDto
§source_data: Value
§config: Option<StreamConfig>
Trait Implementations§
Source§impl Clone for CreateStreamCommand
impl Clone for CreateStreamCommand
Source§fn clone(&self) -> CreateStreamCommand
fn clone(&self) -> CreateStreamCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<R, P> CommandHandler<CreateStreamCommand, StreamId> for SessionCommandHandler<R, P>
impl<R, P> CommandHandler<CreateStreamCommand, StreamId> for SessionCommandHandler<R, P>
fn handle<'life0, 'async_trait>(
&'life0 self,
command: CreateStreamCommand,
) -> Pin<Box<dyn Future<Output = ApplicationResult<StreamId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl Debug for CreateStreamCommand
impl Debug for CreateStreamCommand
Source§impl<'de> Deserialize<'de> for CreateStreamCommand
impl<'de> Deserialize<'de> for CreateStreamCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateStreamCommand
impl RefUnwindSafe for CreateStreamCommand
impl Send for CreateStreamCommand
impl Sync for CreateStreamCommand
impl Unpin for CreateStreamCommand
impl UnwindSafe for CreateStreamCommand
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