pub struct DatastoreRoute { /* private fields */ }Expand description
Explicit route information for a backend connection.
Implementations§
Source§impl DatastoreRoute
impl DatastoreRoute
Sourcepub fn neon(endpoint: impl Into<String>, token: Option<String>) -> Self
pub fn neon(endpoint: impl Into<String>, token: Option<String>) -> Self
Route a connection to a Neon/Propodus SQL-over-HTTP endpoint.
pub fn datastore(&self) -> Datastore
pub fn route(&self) -> &str
pub fn token(&self) -> Option<&str>
Sourcepub fn from_env() -> Result<Self, DactylError>
pub fn from_env() -> Result<Self, DactylError>
Resolve the active route from DATASTORE, DATASTORE_ROUTE, and the
optional DATASTORE_TOKEN environment variables.
Trait Implementations§
Source§impl Clone for DatastoreRoute
impl Clone for DatastoreRoute
Source§fn clone(&self) -> DatastoreRoute
fn clone(&self) -> DatastoreRoute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DatastoreRoute
impl Debug for DatastoreRoute
impl Eq for DatastoreRoute
Source§impl PartialEq for DatastoreRoute
impl PartialEq for DatastoreRoute
impl StructuralPartialEq for DatastoreRoute
Auto Trait Implementations§
impl Freeze for DatastoreRoute
impl RefUnwindSafe for DatastoreRoute
impl Send for DatastoreRoute
impl Sync for DatastoreRoute
impl Unpin for DatastoreRoute
impl UnsafeUnpin for DatastoreRoute
impl UnwindSafe for DatastoreRoute
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