pub struct ChannelConfig {
pub name: String,
pub schema: Schema,
pub mode: ChannelMode,
}Expand description
Required configuration for creating a typed channel.
Fields§
§name: StringExplicit channel name.
schema: SchemaExplicit schema for validating published payloads.
mode: ChannelModeExplicit durability mode for the channel.
Implementations§
Source§impl ChannelConfig
impl ChannelConfig
Sourcepub const fn new(name: String, schema: Schema, mode: ChannelMode) -> Self
pub const fn new(name: String, schema: Schema, mode: ChannelMode) -> Self
Creates channel configuration from its required fields.
Trait Implementations§
Source§impl Clone for ChannelConfig
impl Clone for ChannelConfig
Source§fn clone(&self) -> ChannelConfig
fn clone(&self) -> ChannelConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ChannelConfig
impl !UnwindSafe for ChannelConfig
impl Freeze for ChannelConfig
impl Send for ChannelConfig
impl Sync for ChannelConfig
impl Unpin for ChannelConfig
impl UnsafeUnpin for ChannelConfig
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