pub struct InspectorDescriptor {
pub key: String,
pub target: InspectorTarget,
pub label: Option<String>,
pub controls: Vec<NodeControlDescriptor>,
pub action_keys: Vec<String>,
}Expand description
Renderer-neutral inspector descriptor.
Fields§
§key: String§target: InspectorTarget§label: Option<String>§controls: Vec<NodeControlDescriptor>§action_keys: Vec<String>Implementations§
Source§impl InspectorDescriptor
impl InspectorDescriptor
pub fn new(key: impl Into<String>, target: InspectorTarget) -> Self
pub fn with_label(self, label: impl Into<String>) -> Self
pub fn with_control(self, control: NodeControlDescriptor) -> Self
pub fn with_action_key(self, action_key: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for InspectorDescriptor
impl Clone for InspectorDescriptor
Source§fn clone(&self) -> InspectorDescriptor
fn clone(&self) -> InspectorDescriptor
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 InspectorDescriptor
impl Debug for InspectorDescriptor
Source§impl<'de> Deserialize<'de> for InspectorDescriptor
impl<'de> Deserialize<'de> for InspectorDescriptor
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
Source§impl PartialEq for InspectorDescriptor
impl PartialEq for InspectorDescriptor
Source§fn eq(&self, other: &InspectorDescriptor) -> bool
fn eq(&self, other: &InspectorDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InspectorDescriptor
impl Serialize for InspectorDescriptor
impl StructuralPartialEq for InspectorDescriptor
Auto Trait Implementations§
impl Freeze for InspectorDescriptor
impl RefUnwindSafe for InspectorDescriptor
impl Send for InspectorDescriptor
impl Sync for InspectorDescriptor
impl Unpin for InspectorDescriptor
impl UnsafeUnpin for InspectorDescriptor
impl UnwindSafe for InspectorDescriptor
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