pub struct NamedProperty {
pub name: Identifier,
pub value: Json,
}
Expand description
A property.
Fields§
§name: Identifier
The property name.
value: Json
The property value.
Implementations§
Source§impl NamedProperty
impl NamedProperty
Sourcepub fn new(name: Identifier, value: Json) -> Self
pub fn new(name: Identifier, value: Json) -> Self
Creates a new vertex property.
§Arguments
name
: The name of the property.value
: The property value.
Trait Implementations§
Source§impl Clone for NamedProperty
impl Clone for NamedProperty
Source§fn clone(&self) -> NamedProperty
fn clone(&self) -> NamedProperty
Returns a duplicate of the value. Read more
1.0.0 · 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 NamedProperty
impl Debug for NamedProperty
Source§impl PartialEq for NamedProperty
impl PartialEq for NamedProperty
impl StructuralPartialEq for NamedProperty
Auto Trait Implementations§
impl Freeze for NamedProperty
impl RefUnwindSafe for NamedProperty
impl Send for NamedProperty
impl Sync for NamedProperty
impl Unpin for NamedProperty
impl UnwindSafe for NamedProperty
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