pub struct ContractState {
pub subscribers: u32,
pub subscriber_peer_ids: Vec<String>,
}
Fields§
§subscribers: u32
Number of nodes subscribed to this contract
subscriber_peer_ids: Vec<String>
Peer IDs of nodes that are subscribed to this contract
Trait Implementations§
Source§impl Clone for ContractState
impl Clone for ContractState
Source§fn clone(&self) -> ContractState
fn clone(&self) -> ContractState
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContractState
impl Debug for ContractState
Source§impl<'de> Deserialize<'de> for ContractState
impl<'de> Deserialize<'de> for ContractState
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 ContractState
impl RefUnwindSafe for ContractState
impl Send for ContractState
impl Sync for ContractState
impl Unpin for ContractState
impl UnwindSafe for ContractState
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