pub struct ChannelCreateParams {
pub context: ContextId,
pub channel: Option<ChannelId>,
pub skip_window: Option<u32>,
pub topic: Option<String>,
}Expand description
Optional parameters for channel creation
Fields§
§context: ContextId§channel: Option<ChannelId>Supply a channel id or let the implementation generate one
skip_window: Option<u32>Optional skip window override (default 1024 in AMP spec)
topic: Option<String>Human-friendly topic/label (metadata only)
Trait Implementations§
Source§impl Clone for ChannelCreateParams
impl Clone for ChannelCreateParams
Source§fn clone(&self) -> ChannelCreateParams
fn clone(&self) -> ChannelCreateParams
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 Debug for ChannelCreateParams
impl Debug for ChannelCreateParams
Source§impl<'de> Deserialize<'de> for ChannelCreateParams
impl<'de> Deserialize<'de> for ChannelCreateParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChannelCreateParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChannelCreateParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChannelCreateParams
impl PartialEq for ChannelCreateParams
Source§impl Serialize for ChannelCreateParams
impl Serialize for ChannelCreateParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ChannelCreateParams
impl StructuralPartialEq for ChannelCreateParams
Auto Trait Implementations§
impl Freeze for ChannelCreateParams
impl RefUnwindSafe for ChannelCreateParams
impl Send for ChannelCreateParams
impl Sync for ChannelCreateParams
impl Unpin for ChannelCreateParams
impl UnsafeUnpin for ChannelCreateParams
impl UnwindSafe for ChannelCreateParams
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
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.