pub struct PrivilegedFunction {
pub name: String,
pub modifiers: Vec<String>,
pub capability: String,
pub risk: PrivilegeRisk,
}Expand description
A function with access control restrictions.
Fields§
§name: StringFunction name.
modifiers: Vec<String>Access modifier(s) applied.
capability: StringWhat this function can do (e.g., “mint tokens”, “pause contract”).
risk: PrivilegeRiskRisk level of this privileged operation.
Trait Implementations§
Source§impl Clone for PrivilegedFunction
impl Clone for PrivilegedFunction
Source§impl Debug for PrivilegedFunction
impl Debug for PrivilegedFunction
Source§impl<'de> Deserialize<'de> for PrivilegedFunction
impl<'de> Deserialize<'de> for PrivilegedFunction
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
Auto Trait Implementations§
impl Freeze for PrivilegedFunction
impl RefUnwindSafe for PrivilegedFunction
impl Send for PrivilegedFunction
impl Sync for PrivilegedFunction
impl Unpin for PrivilegedFunction
impl UnsafeUnpin for PrivilegedFunction
impl UnwindSafe for PrivilegedFunction
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