[][src]Enum paperclip::v2::models::Resolvable

pub enum Resolvable<S> {
    Raw(ArcRwLock<S>),
    Resolved {
        new: ArcRwLock<S>,
        old: ArcRwLock<S>,
    },
}

Wrapper for schema. This uses Arc<RwLock<S>> for interior mutability and differentiates raw schema from resolved schema (i.e., the one where $ref references point to the actual schema).

Variants

Raw(ArcRwLock<S>)
Resolved

Fields of Resolved

new: ArcRwLock<S>old: ArcRwLock<S>

Methods

impl<S> Resolvable<S> where
    S: Schema
[src]

pub fn get_description(&self) -> Option<String>[src]

Fetch the description for this schema.

Trait Implementations

impl<S> Clone for Resolvable<S>[src]

impl<S> Debug for Resolvable<S> where
    S: Debug
[src]

impl<S> Default for Resolvable<S> where
    S: Default
[src]

impl<S> Deref for Resolvable<S>[src]

type Target = ArcRwLock<S>

The resulting type after dereferencing.

impl<S> DerefMut for Resolvable<S>[src]

impl<'de, S> Deserialize<'de> for Resolvable<S> where
    S: Deserialize<'de>, 
[src]

impl<S> From<S> for Resolvable<S>[src]

impl<T> Serialize for Resolvable<T> where
    T: Serialize
[src]

Auto Trait Implementations

impl<S> !RefUnwindSafe for Resolvable<S>

impl<S> Send for Resolvable<S> where
    S: Send + Sync

impl<S> Sync for Resolvable<S> where
    S: Send + Sync

impl<S> Unpin for Resolvable<S>

impl<S> !UnwindSafe for Resolvable<S>

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: Deserialize<'de>, 
[src]

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

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

impl<T, U> Into<U> for T where
    U: From<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.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,