pub struct PickedElement {
pub target: Located,
pub kind: String,
pub name: String,
}Expand description
An element as a pick in the viewport names it: what a front end sends
and is sent, which knows no types. Only ElementReference::from_picked
reads it, so an operation never matches on it.
Fields§
§target: LocatedThe target the element is in, behind the path of the instance it
is of: /bolt:model, /:model for one of the part itself.
kind: StringIts kind’s Kind::NAME.
name: StringIts stable name in the target.
Implementations§
Source§impl PickedElement
impl PickedElement
Trait Implementations§
Source§impl Clone for PickedElement
impl Clone for PickedElement
Source§fn clone(&self) -> PickedElement
fn clone(&self) -> PickedElement
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 PickedElement
impl Debug for PickedElement
Source§impl<'de> Deserialize<'de> for PickedElement
impl<'de> Deserialize<'de> for PickedElement
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 PickedElement
Source§impl Hash for PickedElement
impl Hash for PickedElement
Source§impl PartialEq for PickedElement
impl PartialEq for PickedElement
Source§impl Serialize for PickedElement
impl Serialize for PickedElement
impl StructuralPartialEq for PickedElement
Auto Trait Implementations§
impl Freeze for PickedElement
impl RefUnwindSafe for PickedElement
impl Send for PickedElement
impl Sync for PickedElement
impl Unpin for PickedElement
impl UnsafeUnpin for PickedElement
impl UnwindSafe for PickedElement
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