pub struct Schema { /* private fields */ }Expand description
Implementations§
Source§impl Schema
impl Schema
Sourcepub fn relation_type(self, name: &str) -> Self
pub fn relation_type(self, name: &str) -> Self
Sourcepub fn key<T: ValueType>(self, name: &str, family: PropertyFamily) -> Self
pub fn key<T: ValueType>(self, name: &str, family: PropertyFamily) -> Self
Declares a typed property key in family whose value type is T.
§Performance
This method is O(name length).
Sourcepub fn equality_index(self, name: &str, key: &str) -> Self
pub fn equality_index(self, name: &str, key: &str) -> Self
Declares an equality index named name over the property key key.
§Performance
This method is O(name lengths).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnsafeUnpin for Schema
impl UnwindSafe for Schema
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