pub struct ChannelRegistration {
pub name: String,
pub schema_bytes: Option<Vec<u8>>,
pub durable: bool,
}Expand description
A channel to register at runtime.
Mirrors exactly what the boot loop consumes from a configured channel, minus
the config-file concerns: there is no schema_ref here because a path
resolved relative to a config file is not a runtime input.
Fields§
§name: StringChannel name — the roster key.
schema_bytes: Option<Vec<u8>>Raw JSON Schema bytes. None means the permissive empty schema {},
identical to a boot channel that declared no schema_ref. The protocol
schema id is derived from THESE bytes by the same derivation the boot
path uses, so an SDK deriving ids from schema bytes converges on it
exactly as it does for a boot channel.
durable: boolDurable vs ephemeral — the same bit a configured channel’s durable
carries, selecting the same ChannelMode and the same constructor.
Trait Implementations§
Source§impl Clone for ChannelRegistration
impl Clone for ChannelRegistration
Source§fn clone(&self) -> ChannelRegistration
fn clone(&self) -> ChannelRegistration
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 moreSource§impl Debug for ChannelRegistration
impl Debug for ChannelRegistration
impl Eq for ChannelRegistration
Source§impl PartialEq for ChannelRegistration
impl PartialEq for ChannelRegistration
impl StructuralPartialEq for ChannelRegistration
Auto Trait Implementations§
impl Freeze for ChannelRegistration
impl RefUnwindSafe for ChannelRegistration
impl Send for ChannelRegistration
impl Sync for ChannelRegistration
impl Unpin for ChannelRegistration
impl UnsafeUnpin for ChannelRegistration
impl UnwindSafe for ChannelRegistration
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.