pub enum AclError {
AccessDenied {
required: AclRequirement,
table: Option<String>,
},
AnonymousPrincipal,
LastAdmin,
AdminGrantWithTable,
InvalidTable(String),
}Expand description
Errors raised by the canister access control list.
Variants§
AccessDenied
The caller does not satisfy the operation’s access requirement.
table names the table where access was required, or is None for
operations that are not tied to a table (transactions, ACL management
and migrations).
Fields
§
required: AclRequirementThe access the operation requires.
AnonymousPrincipal
Permissions cannot be granted to the anonymous principal.
LastAdmin
The operation would leave the canister without any admin.
AdminGrantWithTable
An Admin grant named a table; Admin always covers every table.
InvalidTable(String)
The grant named a table that is not one of the canister’s tables.
Trait Implementations§
Source§impl CandidType for AclError
impl CandidType for AclError
Source§impl<'de> Deserialize<'de> for AclError
impl<'de> Deserialize<'de> for AclError
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 AclError
Source§impl Error for AclError
impl Error for AclError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<AclError> for IcDbmsError
impl From<AclError> for IcDbmsError
impl StructuralPartialEq for AclError
Auto Trait Implementations§
impl Freeze for AclError
impl RefUnwindSafe for AclError
impl Send for AclError
impl Sync for AclError
impl Unpin for AclError
impl UnsafeUnpin for AclError
impl UnwindSafe for AclError
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