pub struct ContextRestriction {
pub source_context_ids: Vec<Id>,
pub target_context_id: Option<Id>,
pub retained_element_ids: Vec<Id>,
}Expand description
Context restriction shared by participants.
Fields§
§source_context_ids: Vec<Id>Source context identifiers.
target_context_id: Option<Id>Restricted context identifier.
retained_element_ids: Vec<Id>Elements retained by the restriction.
Trait Implementations§
Source§impl Clone for ContextRestriction
impl Clone for ContextRestriction
Source§fn clone(&self) -> ContextRestriction
fn clone(&self) -> ContextRestriction
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 ContextRestriction
impl Debug for ContextRestriction
Source§impl Default for ContextRestriction
impl Default for ContextRestriction
Source§fn default() -> ContextRestriction
fn default() -> ContextRestriction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContextRestriction
impl<'de> Deserialize<'de> for ContextRestriction
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 Hash for ContextRestriction
impl Hash for ContextRestriction
Source§impl Ord for ContextRestriction
impl Ord for ContextRestriction
Source§fn cmp(&self, other: &ContextRestriction) -> Ordering
fn cmp(&self, other: &ContextRestriction) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ContextRestriction
impl PartialEq for ContextRestriction
Source§fn eq(&self, other: &ContextRestriction) -> bool
fn eq(&self, other: &ContextRestriction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ContextRestriction
impl PartialOrd for ContextRestriction
Source§impl Serialize for ContextRestriction
impl Serialize for ContextRestriction
impl Eq for ContextRestriction
impl StructuralPartialEq for ContextRestriction
Auto Trait Implementations§
impl Freeze for ContextRestriction
impl RefUnwindSafe for ContextRestriction
impl Send for ContextRestriction
impl Sync for ContextRestriction
impl Unpin for ContextRestriction
impl UnsafeUnpin for ContextRestriction
impl UnwindSafe for ContextRestriction
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