#[repr(i32)]pub enum Value {
UNSPECIFIED = 0,
ALL = 1,
ALLOWLIST = 2,
}Expand description
Value is the market-level scope:
- ALL: no market-level restriction; new listings are automatically allowed.
- ALLOWLIST: only the listed markets or contracts are allowed.
Variants§
UNSPECIFIED = 0
No scope selected. Create and update requests treat this as ALL.
ALL = 1
Allow all current and future markets or contracts for this policy.
ALLOWLIST = 2
Allow only the markets or contracts listed on this policy.
Implementations§
Source§impl Value
impl Value
Sourcepub const Unspecified: Self = Self::UNSPECIFIED
pub const Unspecified: Self = Self::UNSPECIFIED
Idiomatic alias for Self::UNSPECIFIED; Debug prints the variant name.
Sourcepub const Allowlist: Self = Self::ALLOWLIST
pub const Allowlist: Self = Self::ALLOWLIST
Idiomatic alias for Self::ALLOWLIST; Debug prints the variant name.
Trait Implementations§
impl Copy for Value
Source§impl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Enumeration for Value
impl Enumeration for Value
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.impl Eq for Value
Source§impl ProtoElemJson for Value
impl ProtoElemJson for Value
Source§fn serialize_proto_json<S: Serializer>(
v: &Self,
s: S,
) -> Result<S::Ok, S::Error>
fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>
Serialize this value with proto3 JSON semantics.
Source§fn deserialize_proto_json<'de, D: Deserializer<'de>>(
d: D,
) -> Result<Self, D::Error>
fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>
Deserialize a value with proto3 JSON semantics.
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.