pub enum RestrictionKind {
Paused,
Blacklisted,
NotWhitelisted,
}Expand description
Lightweight tag indicating why an actor was restricted.
Variants§
Paused
Vault is paused.
Blacklisted
Actor appears on the blacklist.
NotWhitelisted
Actor is not on the whitelist.
Trait Implementations§
Source§impl BorshSchema for RestrictionKind
impl BorshSchema for RestrictionKind
Source§fn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
Source§fn add_definitions_recursively(
definitions: &mut BTreeMap<Declaration, Definition>,
)
fn add_definitions_recursively( definitions: &mut BTreeMap<Declaration, Definition>, )
Recursively, using DFS, add type definitions required for this type.
Type definition partially explains how to serialize/deserialize a type.
Source§impl Clone for RestrictionKind
impl Clone for RestrictionKind
Source§fn clone(&self) -> RestrictionKind
fn clone(&self) -> RestrictionKind
Returns a copy 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 RestrictionKind
impl Debug for RestrictionKind
Source§impl JsonSchema for RestrictionKind
impl JsonSchema for RestrictionKind
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RestrictionKind
impl PartialEq for RestrictionKind
impl Copy for RestrictionKind
impl Eq for RestrictionKind
impl StructuralPartialEq for RestrictionKind
Auto Trait Implementations§
impl Freeze for RestrictionKind
impl RefUnwindSafe for RestrictionKind
impl Send for RestrictionKind
impl Sync for RestrictionKind
impl Unpin for RestrictionKind
impl UnwindSafe for RestrictionKind
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