Enum shuttle_service::database::SharedEngine
source · pub enum SharedEngine {
Postgres,
MongoDb,
}
Variants§
Trait Implementations§
source§fn clone(&self) -> SharedEngine
fn clone(&self) -> SharedEngine
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SharedEngine, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SharedEngine, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
source§fn from_str(s: &str) -> Result<SharedEngine, <SharedEngine as FromStr>::Err>
fn from_str(s: &str) -> Result<SharedEngine, <SharedEngine as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moresource§fn eq(&self, other: &SharedEngine) -> bool
fn eq(&self, other: &SharedEngine) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
source§fn try_from(
s: &str,
) -> Result<SharedEngine, <SharedEngine as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<SharedEngine, <SharedEngine as TryFrom<&str>>::Error>
Performs the conversion.
Auto Trait Implementations§
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