pub struct DeclaredShape {
pub id: String,
pub label: String,
pub label_key: String,
pub format: Vec<(String, String)>,
pub drawn: bool,
}Expand description
One shape a marker can take.
Fields§
§id: StringWhat a marker’s shape holds: the model’s value (star), or CONTOUR.
label: StringA readable label, in English.
label_key: StringThe key the front end translates for the label (sectionView.markers.shape.star).
format: Vec<(String, String)>Every (qualified type of the enumeration, value) the model writes it
as, one per release that has it (resqml22.NodeSymbolExt, star).
Empty for the tool’s own shapes.
drawn: boolWhether this build draws it.
Trait Implementations§
Source§impl Clone for DeclaredShape
impl Clone for DeclaredShape
Source§impl Debug for DeclaredShape
impl Debug for DeclaredShape
Source§impl<'de> Deserialize<'de> for DeclaredShape
impl<'de> Deserialize<'de> for DeclaredShape
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 DeclaredShape
impl PartialEq for DeclaredShape
Source§impl Serialize for DeclaredShape
impl Serialize for DeclaredShape
impl StructuralPartialEq for DeclaredShape
Auto Trait Implementations§
impl Freeze for DeclaredShape
impl RefUnwindSafe for DeclaredShape
impl Send for DeclaredShape
impl Sync for DeclaredShape
impl Unpin for DeclaredShape
impl UnsafeUnpin for DeclaredShape
impl UnwindSafe for DeclaredShape
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