pub struct GraphProperties { /* private fields */ }Expand description
Shared property-bag behavior (Java GraphProperties).
Implementations§
Source§impl GraphProperties
impl GraphProperties
Sourcepub fn get_properties(&self) -> HashMap<String, Value>
pub fn get_properties(&self) -> HashMap<String, Value>
A copy of all properties.
pub fn get_property(&self, key: &str) -> Option<Value>
Sourcepub fn add_property(&self, key: &str, value: Value) -> Result<(), AppError>
pub fn add_property(&self, key: &str, value: Value) -> Result<(), AppError>
Add a key-value (key syntax validated; null values rejected).
pub fn remove_property(&self, key: &str) -> Result<(), AppError>
Trait Implementations§
Source§impl Debug for GraphProperties
impl Debug for GraphProperties
Source§impl Default for GraphProperties
impl Default for GraphProperties
Source§fn default() -> GraphProperties
fn default() -> GraphProperties
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for GraphProperties
impl RefUnwindSafe for GraphProperties
impl Send for GraphProperties
impl Sync for GraphProperties
impl Unpin for GraphProperties
impl UnsafeUnpin for GraphProperties
impl UnwindSafe for GraphProperties
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