#[non_exhaustive]pub enum EndpointSpec {
None,
Path,
Url {
schemes: Vec<String>,
},
}Expand description
What a provider needs to be told to open: the endpoint information a configuration cannot guess.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Nothing (in-process memory).
Path
A directory or file on the local filesystem.
Url
A connection URL whose scheme is one of these (postgres, mysql, sqlite).
Trait Implementations§
Source§impl Clone for EndpointSpec
impl Clone for EndpointSpec
Source§impl Debug for EndpointSpec
impl Debug for EndpointSpec
impl Eq for EndpointSpec
Source§impl PartialEq for EndpointSpec
impl PartialEq for EndpointSpec
impl StructuralPartialEq for EndpointSpec
Auto Trait Implementations§
impl Freeze for EndpointSpec
impl RefUnwindSafe for EndpointSpec
impl Send for EndpointSpec
impl Sync for EndpointSpec
impl Unpin for EndpointSpec
impl UnsafeUnpin for EndpointSpec
impl UnwindSafe for EndpointSpec
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