pub struct ActionOptions {
pub label: Option<String>,
pub description: Option<String>,
pub dangerous: bool,
pub idempotent: bool,
pub estimate: Option<String>,
pub params: Option<Value>,
}Expand description
Options for action registration.
Fields§
§label: Option<String>§description: Option<String>§dangerous: bool§idempotent: bool§estimate: Option<String>§params: Option<Value>Implementations§
Source§impl ActionOptions
impl ActionOptions
pub fn new() -> Self
pub fn label(self, label: impl Into<String>) -> Self
pub fn description(self, desc: impl Into<String>) -> Self
pub fn dangerous(self, v: bool) -> Self
pub fn idempotent(self, v: bool) -> Self
pub fn estimate(self, est: impl Into<String>) -> Self
pub fn params(self, params: Value) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ActionOptions
impl RefUnwindSafe for ActionOptions
impl Send for ActionOptions
impl Sync for ActionOptions
impl Unpin for ActionOptions
impl UnsafeUnpin for ActionOptions
impl UnwindSafe for ActionOptions
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