[][src]Struct c3p0_json::json::model::NewModel

pub struct NewModel<DATA> where
    DATA: Clone + Serialize
{ pub version: VersionType, pub data: DATA, }

Fields

version: VersionTypedata: DATA

Methods

impl<DATA> NewModel<DATA> where
    DATA: Clone + Serialize + DeserializeOwned
[src]

pub fn new(data: DATA) -> Self[src]

Trait Implementations

impl<DATA> From<DATA> for NewModel<DATA> where
    DATA: Clone + Serialize + DeserializeOwned
[src]

impl<DATA: Clone> Clone for NewModel<DATA> where
    DATA: Clone + Serialize
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<DATA> Serialize for NewModel<DATA> where
    DATA: Clone + Serialize,
    DATA: Serialize
[src]

impl<'de, DATA> Deserialize<'de> for NewModel<DATA> where
    DATA: Clone + Serialize,
    DATA: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<DATA> Unpin for NewModel<DATA> where
    DATA: Unpin

impl<DATA> Sync for NewModel<DATA> where
    DATA: Sync

impl<DATA> Send for NewModel<DATA> where
    DATA: Send

impl<DATA> RefUnwindSafe for NewModel<DATA> where
    DATA: RefUnwindSafe

impl<DATA> UnwindSafe for NewModel<DATA> where
    DATA: UnwindSafe

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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