pub struct AdminAction {
pub name: String,
pub label: String,
pub description: Option<String>,
pub icon: Option<String>,
pub dangerous: bool,
pub requires_selection: bool,
}Expand description
Admin action
Fields§
§name: StringAction name (identifier)
label: StringDisplay label
description: Option<String>Description
icon: Option<String>Icon
dangerous: boolIs dangerous (requires confirmation)?
requires_selection: boolRequires selection?
Implementations§
Source§impl AdminAction
impl AdminAction
Sourcepub fn description(self, desc: impl Into<String>) -> Self
pub fn description(self, desc: impl Into<String>) -> Self
Set description
Trait Implementations§
Source§impl Clone for AdminAction
impl Clone for AdminAction
Source§fn clone(&self) -> AdminAction
fn clone(&self) -> AdminAction
Returns a duplicate 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 AdminAction
impl Debug for AdminAction
Source§impl<'de> Deserialize<'de> for AdminAction
impl<'de> Deserialize<'de> for AdminAction
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 AdminAction
impl RefUnwindSafe for AdminAction
impl Send for AdminAction
impl Sync for AdminAction
impl Unpin for AdminAction
impl UnwindSafe for AdminAction
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