Skip to main content

AdminUpdateForm

Trait AdminUpdateForm 

Source
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§

Required Methods§

Source

fn entity_name() -> &'static str

Source

fn get_form() -> Form<S>

Source

fn update_query(self, state: &S) -> impl Future<Output = Result<()>> + Send

Source

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".

Implementors§