#[repr(i32)]pub enum ProtectedAction {
PROTECTED_ACTION_UNSPECIFIED = 0,
PROTECTED_ACTION_FUNDING_SET_EXTERNAL_WHITELIST_REQUIRED = 1,
PROTECTED_ACTION_FUNDING_ADD_EXTERNAL_WHITELIST = 2,
PROTECTED_ACTION_FUNDING_REMOVE_EXTERNAL_WHITELIST = 3,
PROTECTED_ACTION_FUNDING_ADD_INTERNAL_WHITELIST = 4,
PROTECTED_ACTION_FUNDING_REMOVE_INTERNAL_WHITELIST = 5,
PROTECTED_ACTION_FUNDING_SET_INTERNAL_WHITELIST_REQUIRED = 6,
}Expand description
ProtectedAction identifies one server-owned action that can receive a guard approval. The server derives target, selector, paramsHash, nonce, and deadline.
Variants§
PROTECTED_ACTION_UNSPECIFIED = 0
Action is not specified.
PROTECTED_ACTION_FUNDING_SET_EXTERNAL_WHITELIST_REQUIRED = 1
Set the external whitelist requirement to false. Enabling the requirement does not need GuardSigner approval and should not be routed here.
PROTECTED_ACTION_FUNDING_ADD_EXTERNAL_WHITELIST = 2
Add external withdrawal destinations to the funding-account whitelist.
PROTECTED_ACTION_FUNDING_REMOVE_EXTERNAL_WHITELIST = 3
Remove external withdrawal destinations from the funding-account whitelist.
PROTECTED_ACTION_FUNDING_ADD_INTERNAL_WHITELIST = 4
Add internal transfer destinations to the funding-account whitelist.
PROTECTED_ACTION_FUNDING_REMOVE_INTERNAL_WHITELIST = 5
Remove internal transfer destinations from the funding-account whitelist.
PROTECTED_ACTION_FUNDING_SET_INTERNAL_WHITELIST_REQUIRED = 6
Set the internal whitelist requirement to false. Enabling the requirement does not need GuardSigner approval and should not be routed here.
Implementations§
Source§impl ProtectedAction
impl ProtectedAction
Sourcepub const Unspecified: Self = Self::PROTECTED_ACTION_UNSPECIFIED
pub const Unspecified: Self = Self::PROTECTED_ACTION_UNSPECIFIED
Idiomatic alias for Self::PROTECTED_ACTION_UNSPECIFIED; Debug prints the variant name.
Sourcepub const FundingSetExternalWhitelistRequired: Self = Self::PROTECTED_ACTION_FUNDING_SET_EXTERNAL_WHITELIST_REQUIRED
pub const FundingSetExternalWhitelistRequired: Self = Self::PROTECTED_ACTION_FUNDING_SET_EXTERNAL_WHITELIST_REQUIRED
Idiomatic alias for Self::PROTECTED_ACTION_FUNDING_SET_EXTERNAL_WHITELIST_REQUIRED; Debug prints the variant name.
Sourcepub const FundingAddExternalWhitelist: Self = Self::PROTECTED_ACTION_FUNDING_ADD_EXTERNAL_WHITELIST
pub const FundingAddExternalWhitelist: Self = Self::PROTECTED_ACTION_FUNDING_ADD_EXTERNAL_WHITELIST
Idiomatic alias for Self::PROTECTED_ACTION_FUNDING_ADD_EXTERNAL_WHITELIST; Debug prints the variant name.
Sourcepub const FundingRemoveExternalWhitelist: Self = Self::PROTECTED_ACTION_FUNDING_REMOVE_EXTERNAL_WHITELIST
pub const FundingRemoveExternalWhitelist: Self = Self::PROTECTED_ACTION_FUNDING_REMOVE_EXTERNAL_WHITELIST
Idiomatic alias for Self::PROTECTED_ACTION_FUNDING_REMOVE_EXTERNAL_WHITELIST; Debug prints the variant name.
Sourcepub const FundingAddInternalWhitelist: Self = Self::PROTECTED_ACTION_FUNDING_ADD_INTERNAL_WHITELIST
pub const FundingAddInternalWhitelist: Self = Self::PROTECTED_ACTION_FUNDING_ADD_INTERNAL_WHITELIST
Idiomatic alias for Self::PROTECTED_ACTION_FUNDING_ADD_INTERNAL_WHITELIST; Debug prints the variant name.
Sourcepub const FundingRemoveInternalWhitelist: Self = Self::PROTECTED_ACTION_FUNDING_REMOVE_INTERNAL_WHITELIST
pub const FundingRemoveInternalWhitelist: Self = Self::PROTECTED_ACTION_FUNDING_REMOVE_INTERNAL_WHITELIST
Idiomatic alias for Self::PROTECTED_ACTION_FUNDING_REMOVE_INTERNAL_WHITELIST; Debug prints the variant name.
Sourcepub const FundingSetInternalWhitelistRequired: Self = Self::PROTECTED_ACTION_FUNDING_SET_INTERNAL_WHITELIST_REQUIRED
pub const FundingSetInternalWhitelistRequired: Self = Self::PROTECTED_ACTION_FUNDING_SET_INTERNAL_WHITELIST_REQUIRED
Idiomatic alias for Self::PROTECTED_ACTION_FUNDING_SET_INTERNAL_WHITELIST_REQUIRED; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for ProtectedAction
impl Clone for ProtectedAction
Source§fn clone(&self) -> ProtectedAction
fn clone(&self) -> ProtectedAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ProtectedAction
Source§impl Debug for ProtectedAction
impl Debug for ProtectedAction
Source§impl Default for ProtectedAction
impl Default for ProtectedAction
Source§impl<'de> Deserialize<'de> for ProtectedAction
impl<'de> Deserialize<'de> for ProtectedAction
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Source§impl Enumeration for ProtectedAction
impl Enumeration for ProtectedAction
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
.proto file.impl Eq for ProtectedAction
Source§impl Hash for ProtectedAction
impl Hash for ProtectedAction
Source§impl PartialEq for ProtectedAction
impl PartialEq for ProtectedAction
Source§impl ProtoElemJson for ProtectedAction
impl ProtoElemJson for ProtectedAction
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>
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>
Source§impl Serialize for ProtectedAction
impl Serialize for ProtectedAction
impl StructuralPartialEq for ProtectedAction
Auto Trait Implementations§
impl Freeze for ProtectedAction
impl RefUnwindSafe for ProtectedAction
impl Send for ProtectedAction
impl Sync for ProtectedAction
impl Unpin for ProtectedAction
impl UnsafeUnpin for ProtectedAction
impl UnwindSafe for ProtectedAction
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
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
key and return true if they are equal.