pub struct NetworkSubscriptionInfo {
pub contract_key: ContractKey,
pub subscribers: Vec<String>,
pub is_optimal_location: bool,
}
Fields§
§contract_key: ContractKey
§subscribers: Vec<String>
Peers that have subscribed to this contract on this node
is_optimal_location: bool
Whether this node is at optimal location for the contract
Trait Implementations§
Source§impl Clone for NetworkSubscriptionInfo
impl Clone for NetworkSubscriptionInfo
Source§fn clone(&self) -> NetworkSubscriptionInfo
fn clone(&self) -> NetworkSubscriptionInfo
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 NetworkSubscriptionInfo
impl Debug for NetworkSubscriptionInfo
Source§impl<'de> Deserialize<'de> for NetworkSubscriptionInfo
impl<'de> Deserialize<'de> for NetworkSubscriptionInfo
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 NetworkSubscriptionInfo
impl RefUnwindSafe for NetworkSubscriptionInfo
impl Send for NetworkSubscriptionInfo
impl Sync for NetworkSubscriptionInfo
impl Unpin for NetworkSubscriptionInfo
impl UnwindSafe for NetworkSubscriptionInfo
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