pub struct FieldLayout { /* private fields */ }Expand description
Immutable type metadata. Positions originate in the generated library, never access order.
Implementations§
Source§impl FieldLayout
impl FieldLayout
pub fn from_generated( entity: &str, revision: &str, indexes: &[(&str, usize)], mappings: &[(&str, &str, &str)], relations: &[&str], expected_members: &[&str], ) -> Result<Arc<Self>, String>
pub fn entity(&self) -> &str
pub fn revision(&self) -> &str
pub fn index(&self, name: &str) -> Option<usize>
pub fn field_count(&self) -> usize
pub fn is_relation(&self, name: &str) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FieldLayout
impl RefUnwindSafe for FieldLayout
impl Send for FieldLayout
impl Sync for FieldLayout
impl Unpin for FieldLayout
impl UnsafeUnpin for FieldLayout
impl UnwindSafe for FieldLayout
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