pub struct LensAction {
pub id: String,
pub label_key: String,
pub state: String,
}Expand description
An action a lens declares. This is the lens-native form (snake_case state) — it
maps to the render contract’s semantic::Action at evaluation time. It is a separate
type so the lens schema stays its own clean, user-authored contract.
Fields§
§id: StringStable action id, e.g. "describe".
label_key: StringMessage key resolved by the frontend for i18n.
state: StringInitial RBAC-preflight state (allowed — the core will grey it out if preflight
denies it).
Trait Implementations§
Source§impl Clone for LensAction
impl Clone for LensAction
Source§fn clone(&self) -> LensAction
fn clone(&self) -> LensAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LensAction
impl Debug for LensAction
Source§impl<'de> Deserialize<'de> for LensAction
impl<'de> Deserialize<'de> for LensAction
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 LensAction
Source§impl PartialEq for LensAction
impl PartialEq for LensAction
Source§impl Serialize for LensAction
impl Serialize for LensAction
impl StructuralPartialEq for LensAction
Auto Trait Implementations§
impl Freeze for LensAction
impl RefUnwindSafe for LensAction
impl Send for LensAction
impl Sync for LensAction
impl Unpin for LensAction
impl UnsafeUnpin for LensAction
impl UnwindSafe for LensAction
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