pub struct MolNode {Show 14 fields
pub type_: MolNodeKind,
pub smiles: Option<String>,
pub cxsmiles: Option<String>,
pub molfile: Option<String>,
pub id: Option<String>,
pub shade: Option<ShadeSpec>,
pub star_labels: Option<Vec<Option<String>>>,
pub align_to: Option<AlignTo>,
pub label: Option<Label>,
pub color: Option<String>,
pub scale: Option<f64>,
pub weight: Option<f64>,
pub halo: Option<bool>,
pub opts: Option<Opts>,
}Expand description
Mol node — MolOpts fields + non-cascading identity / scores / align.
Fields§
§type_: MolNodeKind§smiles: Option<String>§cxsmiles: Option<String>§molfile: Option<String>§id: Option<String>§shade: Option<ShadeSpec>Shade scores (+ legacy window); window also cascades via Opts.
star_labels: Option<Vec<Option<String>>>§align_to: Option<AlignTo>Template id string, or { "ref", "atom_map"?, "min_atoms"? }.
label: Option<Label>Caption: Label (string id, list, or {id, pos?} — text-node refs).
pos on a placement chooses caption side (above/below/left/right);
hosts measure the resolved text and fold that into node size for layout.
color: Option<String>§scale: Option<f64>§weight: Option<f64>§halo: Option<bool>§opts: Option<Opts>Cascade patches for this node (list or singleton).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MolNode
impl<'de> Deserialize<'de> for MolNode
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
Auto Trait Implementations§
impl Freeze for MolNode
impl RefUnwindSafe for MolNode
impl Send for MolNode
impl Sync for MolNode
impl Unpin for MolNode
impl UnsafeUnpin for MolNode
impl UnwindSafe for MolNode
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