pub struct Channel {
pub id: u64,
pub name: String,
pub channel_type: ChannelType,
pub created_at: DateTime<Utc>,
pub participants: Vec<String>,
pub config: ChannelConfig,
pub state: ChannelState,
pub comm_id: Option<CommId>,
pub contract_ref: Option<String>,
}Expand description
A communication channel.
Fields§
§id: u64Unique channel identifier.
name: StringHuman-readable channel name.
channel_type: ChannelTypeType of channel.
created_at: DateTime<Utc>When the channel was created.
participants: Vec<String>Current participants.
config: ChannelConfigChannel configuration.
state: ChannelStateOperational state of the channel.
comm_id: Option<CommId>UUID-based universal identifier (alongside legacy u64 id).
contract_ref: Option<String>Optional contract reference for SLA enforcement.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Channel
impl<'de> Deserialize<'de> for Channel
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 Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnsafeUnpin for Channel
impl UnwindSafe for Channel
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