Skip to main content

update_record_with_executor

Function update_record_with_executor 

Source
pub async fn update_record_with_executor<'e, E, M, PK, I>(
    executor: E,
    descriptor: &'static ModelDescriptor<M, PK>,
    id: PK,
    input: I,
    ctx: &CoolContext,
) -> Result<M, CoolError>
where E: Executor<'e, Database = Postgres>, I: UpdateModelInput<M>, M: for<'r> Send + for<'r> Unpin + for<'r> FromRow<'r, PgRow> + for<'r> Serialize, PK: Send + Type<Postgres> + for<'q> Encode<'q, Postgres>,