pub struct EdgeBaseSpec {
pub color: Rgba,
pub opacity: f32,
pub width: f32,
pub label_attr: Option<String>,
pub label_visible: bool,
}Fields§
§color: Rgba§opacity: f32§width: f32§label_attr: Option<String>Name an edge attr to draw as the edge’s label — "rel", "type",
whatever the dataset uses. Unset (the default) means edges carry no
labels at all, so adding this field changes nothing for a spec that
does not ask for it.
An attr reference rather than a literal because relationship types are
generally not known when the spec is written: a graph read from a
database has whatever types the database has. Per-rule label_text
overrides this for the types a host does want to name.
label_visible: boolTrait Implementations§
Source§impl Clone for EdgeBaseSpec
impl Clone for EdgeBaseSpec
Source§fn clone(&self) -> EdgeBaseSpec
fn clone(&self) -> EdgeBaseSpec
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 EdgeBaseSpec
impl Debug for EdgeBaseSpec
Source§impl<'de> Deserialize<'de> for EdgeBaseSpec
impl<'de> Deserialize<'de> for EdgeBaseSpec
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 EdgeBaseSpec
impl RefUnwindSafe for EdgeBaseSpec
impl Send for EdgeBaseSpec
impl Sync for EdgeBaseSpec
impl Unpin for EdgeBaseSpec
impl UnsafeUnpin for EdgeBaseSpec
impl UnwindSafe for EdgeBaseSpec
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