pub struct DbDatum {
pub name: String,
pub data: PropertyValue,
pub wrong_data_type: bool,
/* private fields */
}
Expand description
Represents a single property with name and value.
Fields§
§name: String
§data: PropertyValue
§wrong_data_type: bool
Implementations§
Source§impl DbDatum
impl DbDatum
Sourcepub fn new(name: &str, data: PropertyValue) -> DbDatum
pub fn new(name: &str, data: PropertyValue) -> DbDatum
Create a datum for a given name and value.
Sourcepub fn for_request(name: &str, typ: TangoDataType) -> DbDatum
pub fn for_request(name: &str, typ: TangoDataType) -> DbDatum
Create a datum for requesting a given property with a fixed data type.
Trait Implementations§
impl StructuralPartialEq for DbDatum
Auto Trait Implementations§
impl Freeze for DbDatum
impl RefUnwindSafe for DbDatum
impl Send for DbDatum
impl Sync for DbDatum
impl Unpin for DbDatum
impl UnwindSafe for DbDatum
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