pub struct AdapterCapabilities {
pub adapter_id: String,
pub adapter_name: Option<String>,
pub supports_numeric_ids: bool,
pub supports_uuid_ids: bool,
pub supports_json: bool,
pub supports_dates: bool,
pub supports_booleans: bool,
pub supports_arrays: bool,
pub supports_joins: bool,
pub supports_transactions: bool,
pub disable_id_generation: bool,
}Expand description
Database adapter capability metadata.
Fields§
§adapter_id: String§adapter_name: Option<String>§supports_numeric_ids: bool§supports_uuid_ids: bool§supports_json: bool§supports_dates: bool§supports_booleans: bool§supports_arrays: bool§supports_joins: bool§supports_transactions: bool§disable_id_generation: boolImplementations§
Source§impl AdapterCapabilities
impl AdapterCapabilities
pub fn new(adapter_id: impl Into<String>) -> AdapterCapabilities
pub fn named(self, adapter_name: impl Into<String>) -> AdapterCapabilities
pub fn without_numeric_ids(self) -> AdapterCapabilities
pub fn with_uuid_ids(self) -> AdapterCapabilities
pub fn with_json(self) -> AdapterCapabilities
pub fn without_dates(self) -> AdapterCapabilities
pub fn without_booleans(self) -> AdapterCapabilities
pub fn with_arrays(self) -> AdapterCapabilities
pub fn with_joins(self) -> AdapterCapabilities
pub fn with_transactions(self) -> AdapterCapabilities
pub fn without_id_generation(self) -> AdapterCapabilities
Trait Implementations§
Source§impl Clone for AdapterCapabilities
impl Clone for AdapterCapabilities
Source§fn clone(&self) -> AdapterCapabilities
fn clone(&self) -> AdapterCapabilities
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 AdapterCapabilities
impl Debug for AdapterCapabilities
Source§impl<'de> Deserialize<'de> for AdapterCapabilities
impl<'de> Deserialize<'de> for AdapterCapabilities
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AdapterCapabilities, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AdapterCapabilities, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AdapterCapabilities
Source§impl PartialEq for AdapterCapabilities
impl PartialEq for AdapterCapabilities
Source§fn eq(&self, other: &AdapterCapabilities) -> bool
fn eq(&self, other: &AdapterCapabilities) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AdapterCapabilities
impl Serialize for AdapterCapabilities
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
impl StructuralPartialEq for AdapterCapabilities
Auto Trait Implementations§
impl Freeze for AdapterCapabilities
impl RefUnwindSafe for AdapterCapabilities
impl Send for AdapterCapabilities
impl Sync for AdapterCapabilities
impl Unpin for AdapterCapabilities
impl UnsafeUnpin for AdapterCapabilities
impl UnwindSafe for AdapterCapabilities
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.