Enum stry_common::backend::StorageType[][src]

pub enum StorageType {
    File {
        location: String,
    },
    Parts {
        username: Option<String>,
        password: Option<String>,
        host: String,
        port: Option<String>,
        database: Option<String>,
        params: Option<HashMap<String, String>>,
    },
}

Variants

File

Fields of File

location: String
Parts

Fields of Parts

username: Option<String>password: Option<String>host: Stringport: Option<String>database: Option<String>params: Option<HashMap<String, String>>

Implementations

impl StorageType[src]

pub fn is_file(&self) -> bool[src]

pub fn is_parts(&self) -> bool[src]

Trait Implementations

impl Clone for StorageType[src]

impl Debug for StorageType[src]

impl<'de> Deserialize<'de> for StorageType[src]

impl Serialize for StorageType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoOption for T[src]

impl<T> IntoResult for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.