pub struct Entity;

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Method to get the name for the schema, defaults to Option::None if not set

Get the name of the table

Get the name of the module from the invoking self.table_name()

Get the TableRef from invoking the self.schema_name()

Check if the relation belongs to an Entity

Check if the entity has at least one relation

Check if the Entity has many relations

Construct select statement to find one / all models Read more

Find a model by primary key Read more

Insert an model into database Read more

Insert many models into database Read more

Update an model in database Read more

Update many models in database Read more

Delete an model from database Read more

Delete many models from database Read more

Delete a model based on primary key Read more

Converts to this type from the input type.

Method to call to get the static string identity

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Method to perform the conversion

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more