pub enum Permission {
Show 20 variants
JoinCell,
LeaveCell,
CreateCell,
DisbandCell,
SetCellLeader,
SetCellObjective,
AdvertiseCapability,
RequestCapability,
ReadCellState,
WriteCellState,
ReadNodeState,
WriteNodeState,
ReadTelemetry,
FormPlatoon,
AggregateToCompany,
ApproveFormation,
VetoCommand,
ConfigureNetwork,
ManageKeys,
ViewAuditLog,
}Expand description
Permissions that can be checked for authorization.
These permissions cover all security-relevant operations in Peat Protocol.
Variants§
JoinCell
Permission to join a cell
LeaveCell
Permission to leave a cell
CreateCell
Permission to create a new cell
DisbandCell
Permission to disband an existing cell
SetCellLeader
Permission to set a cell’s leader
SetCellObjective
Permission to set a cell’s objective
AdvertiseCapability
Permission to advertise capabilities
RequestCapability
Permission to request capabilities from others
ReadCellState
Permission to read cell state
WriteCellState
Permission to write/modify cell state
ReadNodeState
Permission to read node state
WriteNodeState
Permission to write/modify node state
ReadTelemetry
Permission to read telemetry data
FormPlatoon
Permission to form a platoon from cells
AggregateToCompany
Permission to aggregate data to company level
ApproveFormation
Permission to approve cell formation
VetoCommand
Permission to veto autonomous commands
ConfigureNetwork
Permission to configure network settings
ManageKeys
Permission to manage cryptographic keys
ViewAuditLog
Permission to view audit logs
Trait Implementations§
Source§impl Clone for Permission
impl Clone for Permission
Source§fn clone(&self) -> Permission
fn clone(&self) -> Permission
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Permission
impl Debug for Permission
Source§impl<'de> Deserialize<'de> for Permission
impl<'de> Deserialize<'de> for Permission
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>,
Source§impl Display for Permission
impl Display for Permission
Source§impl Hash for Permission
impl Hash for Permission
Source§impl PartialEq for Permission
impl PartialEq for Permission
Source§impl Serialize for Permission
impl Serialize for Permission
impl Copy for Permission
impl Eq for Permission
impl StructuralPartialEq for Permission
Auto Trait Implementations§
impl Freeze for Permission
impl RefUnwindSafe for Permission
impl Send for Permission
impl Sync for Permission
impl Unpin for Permission
impl UnsafeUnpin for Permission
impl UnwindSafe for Permission
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.