pub trait AdminUpdateForm<S>: Sized {
type PrimaryKeys;
// Required methods
fn entity_name() -> &'static str;
fn get_form() -> Form<S>;
fn update_query(self, state: &S) -> impl Future<Output = Result<()>> + Send;
fn get_query(
state: &S,
pks: Self::PrimaryKeys,
) -> impl Future<Output = Result<Self>> + Send;
}Required Associated Types§
type PrimaryKeys
Required Methods§
fn entity_name() -> &'static str
fn get_form() -> Form<S>
fn update_query(self, state: &S) -> impl Future<Output = Result<()>> + Send
fn get_query( state: &S, pks: Self::PrimaryKeys, ) -> impl Future<Output = Result<Self>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".