pub enum LocalityRequirement {
Any,
Local,
Remote,
}Expand description
Enumerates the finite locality requirement cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
Any
Use this variant when the contract needs to represent any; selecting it has no side effect by itself.
Local
Use this variant when the contract needs to represent local; selecting it has no side effect by itself.
Remote
Use this variant when the contract needs to represent remote; selecting it has no side effect by itself.
Trait Implementations§
Source§impl Clone for LocalityRequirement
impl Clone for LocalityRequirement
Source§fn clone(&self) -> LocalityRequirement
fn clone(&self) -> LocalityRequirement
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 LocalityRequirement
impl Debug for LocalityRequirement
Source§impl<'de> Deserialize<'de> for LocalityRequirement
impl<'de> Deserialize<'de> for LocalityRequirement
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
impl Eq for LocalityRequirement
Source§impl PartialEq for LocalityRequirement
impl PartialEq for LocalityRequirement
Source§fn eq(&self, other: &LocalityRequirement) -> bool
fn eq(&self, other: &LocalityRequirement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LocalityRequirement
impl Serialize for LocalityRequirement
impl StructuralPartialEq for LocalityRequirement
Auto Trait Implementations§
impl Freeze for LocalityRequirement
impl RefUnwindSafe for LocalityRequirement
impl Send for LocalityRequirement
impl Sync for LocalityRequirement
impl Unpin for LocalityRequirement
impl UnsafeUnpin for LocalityRequirement
impl UnwindSafe for LocalityRequirement
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