Struct c3p0_common::json::model::Model
source · pub struct Model<Id, Data> {
pub id: Id,
pub version: VersionType,
pub create_epoch_millis: EpochMillisType,
pub update_epoch_millis: EpochMillisType,
pub data: Data,
}
Fields§
§id: Id
§version: VersionType
§create_epoch_millis: EpochMillisType
§update_epoch_millis: EpochMillisType
§data: Data
Implementations§
source§impl<Id: IdType, Data: DataType> Model<Id, Data>
impl<Id: IdType, Data: DataType> Model<Id, Data>
pub fn into_new(self) -> NewModel<Data>
pub fn from_new( id: Id, create_epoch_millis: EpochMillisType, model: NewModel<Data> ) -> Model<Id, Data>
pub fn into_new_version( self, update_epoch_millis: EpochMillisType ) -> Model<Id, Data>
Trait Implementations§
source§impl<'de, Id, Data> Deserialize<'de> for Model<Id, Data>where
Id: Deserialize<'de>,
Data: Deserialize<'de>,
impl<'de, Id, Data> Deserialize<'de> for Model<Id, Data>where
Id: Deserialize<'de>,
Data: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<Id: PartialEq, Data: PartialEq> PartialEq for Model<Id, Data>
impl<Id: PartialEq, Data: PartialEq> PartialEq for Model<Id, Data>
impl<Id, Data> StructuralPartialEq for Model<Id, Data>
Auto Trait Implementations§
impl<Id, Data> RefUnwindSafe for Model<Id, Data>where
Data: RefUnwindSafe,
Id: RefUnwindSafe,
impl<Id, Data> Send for Model<Id, Data>
impl<Id, Data> Sync for Model<Id, Data>
impl<Id, Data> Unpin for Model<Id, Data>
impl<Id, Data> UnwindSafe for Model<Id, Data>where
Data: UnwindSafe,
Id: UnwindSafe,
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