pub struct DatabaseBuilder { /* private fields */ }
Expand description
Builder for creating Database instances
Implementations§
Source§impl DatabaseBuilder
impl DatabaseBuilder
Sourcepub fn new(name: impl Into<String>, engine: impl Into<String>) -> Self
pub fn new(name: impl Into<String>, engine: impl Into<String>) -> Self
Creates a new database builder
Sourcepub fn on_demand_sync(self, enabled: bool) -> Self
pub fn on_demand_sync(self, enabled: bool) -> Self
Sets whether on-demand sync is enabled
Sourcepub fn cache_schedule(self, schedule: impl Into<String>) -> Self
pub fn cache_schedule(self, schedule: impl Into<String>) -> Self
Sets the cache field values schedule
Sourcepub fn sync_schedule(self, schedule: impl Into<String>) -> Self
pub fn sync_schedule(self, schedule: impl Into<String>) -> Self
Sets the metadata sync schedule
Sourcepub fn build_request(self) -> CreateDatabaseRequest
pub fn build_request(self) -> CreateDatabaseRequest
Builds a CreateDatabaseRequest
Auto Trait Implementations§
impl Freeze for DatabaseBuilder
impl RefUnwindSafe for DatabaseBuilder
impl Send for DatabaseBuilder
impl Sync for DatabaseBuilder
impl Unpin for DatabaseBuilder
impl UnwindSafe for DatabaseBuilder
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