pub struct ModelMapping {Show 21 fields
pub model: String,
pub plural: Option<String>,
pub find_unique: Option<String>,
pub find_unique_or_throw: Option<String>,
pub find_first: Option<String>,
pub find_first_or_throw: Option<String>,
pub find_many: Option<String>,
pub create: Option<String>,
pub create_many: Option<String>,
pub create_many_and_return: Option<String>,
pub update: Option<String>,
pub update_many: Option<String>,
pub update_many_and_return: Option<String>,
pub upsert: Option<String>,
pub delete: Option<String>,
pub delete_many: Option<String>,
pub aggregate: Option<String>,
pub group_by: Option<String>,
pub count: Option<String>,
pub find_raw: Option<String>,
pub aggregate_raw: Option<String>,
}Fields§
§model: String§plural: Option<String>This is not optional in @prisma/dmmf, but can be None in the Generator DMMF
find_unique: Option<String>§find_unique_or_throw: Option<String>§find_first: Option<String>§find_first_or_throw: Option<String>§find_many: Option<String>§create: Option<String>§create_many: Option<String>§create_many_and_return: Option<String>§update: Option<String>§update_many: Option<String>§update_many_and_return: Option<String>§upsert: Option<String>§delete: Option<String>§delete_many: Option<String>§aggregate: Option<String>§group_by: Option<String>§count: Option<String>§find_raw: Option<String>§aggregate_raw: Option<String>Trait Implementations§
Source§impl Clone for ModelMapping
impl Clone for ModelMapping
Source§fn clone(&self) -> ModelMapping
fn clone(&self) -> ModelMapping
Returns a duplicate of the value. Read more
1.0.0 · 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 ModelMapping
impl Debug for ModelMapping
Source§impl<'de> Deserialize<'de> for ModelMapping
impl<'de> Deserialize<'de> for ModelMapping
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
Auto Trait Implementations§
impl Freeze for ModelMapping
impl RefUnwindSafe for ModelMapping
impl Send for ModelMapping
impl Sync for ModelMapping
impl Unpin for ModelMapping
impl UnwindSafe for ModelMapping
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