pub struct Property { /* private fields */ }
Implementations§
Source§impl Property
impl Property
pub fn new(name: String, value: PropertyValue) -> Self
pub fn new_string(name: &str, value: String) -> Self
pub fn new_str(name: &str, value: &str) -> Self
pub fn new_integer(name: &str, value: i64) -> Self
pub fn new_uinteger(name: &str, value: u64) -> Self
pub fn new_bool(name: &str, value: bool) -> Self
pub fn new_float(name: &str, value: f64) -> Self
pub fn new_with_id(id: u64, name: String, value: PropertyValue) -> Self
pub fn get_id(&self) -> Option<u64>
pub fn set_id(&mut self, id: Option<u64>)
pub fn get_name(&self) -> &str
pub fn get_value(&self) -> &PropertyValue
Trait Implementations§
impl Eq for Property
impl StructuralPartialEq for Property
Auto Trait Implementations§
impl Freeze for Property
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnwindSafe for Property
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.