Struct orm::EntityInner
[−]
[src]
pub struct EntityInner { pub orm_meta: &'static OrmMeta, pub meta: &'static EntityMeta, pub field_map: HashMap<String, FieldValue>, pub cascade: Option<Cascade>, }
Fields
orm_meta: &'static OrmMeta
meta: &'static EntityMeta
field_map: HashMap<String, FieldValue>
cascade: Option<Cascade>
Methods
impl EntityInner
[src]
pub fn new(meta: &'static EntityMeta, orm_meta: &'static OrmMeta) -> EntityInner
[src]
pub fn default(
meta: &'static EntityMeta,
orm_meta: &'static OrmMeta
) -> EntityInner
[src]
meta: &'static EntityMeta,
orm_meta: &'static OrmMeta
) -> EntityInner
pub fn new_pointer(
meta: &'static EntityMeta,
orm_meta: &'static OrmMeta
) -> EntityInnerPointer
[src]
meta: &'static EntityMeta,
orm_meta: &'static OrmMeta
) -> EntityInnerPointer
pub fn default_pointer(
meta: &'static EntityMeta,
orm_meta: &'static OrmMeta
) -> EntityInnerPointer
[src]
meta: &'static EntityMeta,
orm_meta: &'static OrmMeta
) -> EntityInnerPointer
pub fn get_addr(&self) -> u64
[src]
pub fn get_id_value(&self) -> Value
[src]
pub fn get_id_u64(&self) -> Option<u64>
[src]
impl EntityInner
[src]
pub fn get_value<V>(&self, field: &str) -> V where
V: FromValue,
[src]
V: FromValue,
pub fn set_value<V>(&mut self, field: &str, value: V) where
Value: From<V>,
[src]
Value: From<V>,
pub fn set_value_null(&mut self, field: &str)
[src]
pub fn is_value_null(&self, field: &str) -> bool
[src]
impl EntityInner
[src]
pub fn get_entity(&self, field: &str) -> Option<EntityInnerPointer>
[src]
pub fn set_entity(&mut self, field: &str, opt: Option<EntityInnerPointer>)
[src]
impl EntityInner
[src]
pub fn get_vec(&self, field: &str) -> Vec<EntityInnerPointer>
[src]
pub fn set_vec(&mut self, field: &str, vec: Vec<EntityInnerPointer>)
[src]
pub fn is_vec_null(&self, field: &str) -> bool
[src]
impl EntityInner
[src]
Trait Implementations
impl Debug for EntityInner
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for EntityInner
[src]
fn eq(&self, other: &EntityInner) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.