pub struct ChannelSpec {
pub name: String,
pub reducer: String,
pub args: Vec<Literal>,
}Expand description
A compiled state-channel binding.
Fields§
§name: StringThe channel name.
reducer: StringThe reducer reference bound to the channel.
args: Vec<Literal>Reducer policy arguments (e.g. a named aggregate reducer or barrier
count). Empty for plain reducers like append/overwrite.
Trait Implementations§
Source§impl Clone for ChannelSpec
impl Clone for ChannelSpec
Source§fn clone(&self) -> ChannelSpec
fn clone(&self) -> ChannelSpec
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 ChannelSpec
impl Debug for ChannelSpec
Source§impl<'de> Deserialize<'de> for ChannelSpec
impl<'de> Deserialize<'de> for ChannelSpec
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
Source§impl PartialEq for ChannelSpec
impl PartialEq for ChannelSpec
Source§impl Serialize for ChannelSpec
impl Serialize for ChannelSpec
impl StructuralPartialEq for ChannelSpec
Auto Trait Implementations§
impl Freeze for ChannelSpec
impl RefUnwindSafe for ChannelSpec
impl Send for ChannelSpec
impl Sync for ChannelSpec
impl Unpin for ChannelSpec
impl UnsafeUnpin for ChannelSpec
impl UnwindSafe for ChannelSpec
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