pub struct HttpStatModel {}Implementations§
Trait Implementations§
Source§impl Model for HttpStatModel
impl Model for HttpStatModel
type Output = HttpStat
fn new() -> Self
fn keyword(&self) -> String
async fn schema_view(&self, pool: &Pool<Postgres>) -> SchemaView
fn push_filter_conditions<'args>( &self, qb: &mut QueryBuilder<'args, Postgres>, filters: &HashMap<String, String>, ) -> Result<(), Error>
async fn list( &self, pool: &Pool<Postgres>, params: &ModelListParams, ) -> Result<Vec<Self::Output>, Error>
async fn count( &self, pool: &Pool<Postgres>, params: &ModelListParams, ) -> Result<i64, Error>
async fn get_by_id( &self, pool: &Pool<Postgres>, id: u64, ) -> Result<Option<Self::Output>, Error>
fn push_conditions<'args>( &self, qb: &mut QueryBuilder<'args, Postgres>, params: &ModelListParams, ) -> Result<(), Error>
async fn insert( &self, _pool: &Pool<Postgres>, _params: Value, ) -> Result<u64, Error>
async fn delete_by_id( &self, _pool: &Pool<Postgres>, _id: u64, ) -> Result<(), Error>
async fn update_by_id( &self, _pool: &Pool<Postgres>, _id: u64, _params: Value, ) -> Result<(), Error>
async fn list_and_count( &self, pool: &Pool<Postgres>, count: bool, params: &ModelListParams, ) -> Result<Value, Error>
async fn search_options( &self, _pool: &Pool<Postgres>, _keyword: Option<String>, ) -> Result<Vec<SchemaOption>, Error>
Auto Trait Implementations§
impl Freeze for HttpStatModel
impl RefUnwindSafe for HttpStatModel
impl Send for HttpStatModel
impl Sync for HttpStatModel
impl Unpin for HttpStatModel
impl UnsafeUnpin for HttpStatModel
impl UnwindSafe for HttpStatModel
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more