pub struct Schema { /* private fields */ }Implementations§
source§impl Schema
impl Schema
pub fn new() -> Schema
pub async fn with_datastore<'a, K, Doc>( self, opts: Options<'a> ) -> Result<Schema, SchemaError>where Doc: Serialize + DeserializeOwned + Clone + Sync + Send + 'static + Document, K: Serialize + DeserializeOwned + PartialOrd + Ord + PartialEq + Eq + Hash + Clone + Send + Sync + 'static,
pub async fn with_redisstore<K, Doc>( self, storage_name: &str ) -> Result<Schema, SchemaError>where Doc: Clone + Sync + Send + 'static, K: PartialOrd + Ord + PartialEq + Eq + Hash + Clone + Send + Sync + 'static,
pub fn build(self) -> Database
Auto Trait Implementations§
impl !RefUnwindSafe for Schema
impl !Send for Schema
impl !Sync for Schema
impl Unpin 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