ActiveModel

Struct ActiveModel 

Source
pub struct ActiveModel {
Show 14 fields pub id: ActiveValue<String>, pub code: ActiveValue<String>, pub name: ActiveValue<String>, pub data_type: ActiveValue<String>, pub note: ActiveValue<String>, pub value1: ActiveValue<String>, pub value2: ActiveValue<String>, pub ext: ActiveValue<String>, pub rel_item_id: ActiveValue<String>, pub disabled: ActiveValue<bool>, pub own_paths: ActiveValue<String>, pub owner: ActiveValue<String>, pub create_time: ActiveValue<DateTime<Utc>>, pub update_time: ActiveValue<DateTime<Utc>>,
}
Expand description

Generated by sea-orm-macros

Fields§

§id: ActiveValue<String>

Generated by sea-orm-macros

§code: ActiveValue<String>

Generated by sea-orm-macros

§name: ActiveValue<String>

Generated by sea-orm-macros

§data_type: ActiveValue<String>

Generated by sea-orm-macros

§note: ActiveValue<String>

Generated by sea-orm-macros

§value1: ActiveValue<String>

Generated by sea-orm-macros

§value2: ActiveValue<String>

Generated by sea-orm-macros

§ext: ActiveValue<String>

Generated by sea-orm-macros

§rel_item_id: ActiveValue<String>

Generated by sea-orm-macros

§disabled: ActiveValue<bool>

Generated by sea-orm-macros

§own_paths: ActiveValue<String>

Generated by sea-orm-macros

§owner: ActiveValue<String>

Generated by sea-orm-macros

§create_time: ActiveValue<DateTime<Utc>>

Generated by sea-orm-macros

§update_time: ActiveValue<DateTime<Utc>>

Generated by sea-orm-macros

Trait Implementations§

Source§

impl ActiveModelBehavior for ActiveModel

Generated by Tardis

Source§

fn new() -> Self

Create a new ActiveModel with default values. Also used by Default::default().
Source§

fn before_save<'life0, 'async_trait, C>( self, db: &'life0 C, insert: bool, ) -> Pin<Box<dyn Future<Output = Result<Self, DbErr>> + Send + 'async_trait>>
where 'life0: 'async_trait, C: ConnectionTrait + 'async_trait, Self: Send + 'async_trait,

Will be called before ActiveModel::insert, ActiveModel::update, and ActiveModel::save
Source§

fn after_save<'life0, 'async_trait, C>( model: <Self::Entity as EntityTrait>::Model, db: &'life0 C, insert: bool, ) -> Pin<Box<dyn Future<Output = Result<<Self::Entity as EntityTrait>::Model, DbErr>> + Send + 'async_trait>>
where 'life0: 'async_trait, C: ConnectionTrait + 'async_trait, Self: Send + 'async_trait,

Will be called after ActiveModel::insert, ActiveModel::update, and ActiveModel::save
Source§

fn before_delete<'life0, 'async_trait, C>( self, db: &'life0 C, ) -> Pin<Box<dyn Future<Output = Result<Self, DbErr>> + Send + 'async_trait>>
where 'life0: 'async_trait, C: ConnectionTrait + 'async_trait, Self: Send + 'async_trait,

Will be called before ActiveModel::delete
Source§

fn after_delete<'life0, 'async_trait, C>( self, db: &'life0 C, ) -> Pin<Box<dyn Future<Output = Result<Self, DbErr>> + Send + 'async_trait>>
where 'life0: 'async_trait, C: ConnectionTrait + 'async_trait, Self: Send + 'async_trait,

Will be called after ActiveModel::delete
Source§

impl ActiveModelTrait for ActiveModel

Source§

type Entity = Entity

The Entity this ActiveModel belongs to
Source§

fn take( &mut self, c: <Self::Entity as EntityTrait>::Column, ) -> ActiveValue<Value>

Get a mutable ActiveValue from an ActiveModel
Source§

fn get(&self, c: <Self::Entity as EntityTrait>::Column) -> ActiveValue<Value>

Get a immutable ActiveValue from an ActiveModel
Source§

fn try_set( &mut self, c: <Self::Entity as EntityTrait>::Column, v: Value, ) -> Result<(), DbErr>

Set the Value into an ActiveModel, return error if failed. Read more
Source§

fn not_set(&mut self, c: <Self::Entity as EntityTrait>::Column)

Set the state of an ActiveValue to the not set state
Source§

fn is_not_set(&self, c: <Self::Entity as EntityTrait>::Column) -> bool

Check the state of a ActiveValue
Source§

fn default() -> Self

Create an ActiveModel with all fields to NotSet
Source§

fn default_values() -> Self

Create an ActiveModel with all fields to Set(default_value) if Default is implemented, NotSet otherwise
Source§

fn reset(&mut self, c: <Self::Entity as EntityTrait>::Column)

Reset the value from ActiveValue::Unchanged to ActiveValue::Set, leaving ActiveValue::NotSet untouched.
Source§

fn set(&mut self, c: <Self::Entity as EntityTrait>::Column, v: Value)

Set the Value into an ActiveModel, panic if failed
Source§

fn reset_all(self) -> Self

Reset all values from ActiveValue::Unchanged to ActiveValue::Set, leaving ActiveValue::NotSet untouched.
Source§

fn get_primary_key_value(&self) -> Option<ValueTuple>

Get the primary key of the ActiveModel Read more
Source§

fn insert<'a, 'async_trait, C>( self, db: &'a C, ) -> Pin<Box<dyn Future<Output = Result<<Self::Entity as EntityTrait>::Model, DbErr>> + Send + 'async_trait>>
where 'a: 'async_trait, <Self::Entity as EntityTrait>::Model: IntoActiveModel<Self>, Self: ActiveModelBehavior + 'a + Send + 'async_trait, C: ConnectionTrait + 'async_trait,

Perform an INSERT operation on the ActiveModel Read more
Source§

fn update<'a, 'async_trait, C>( self, db: &'a C, ) -> Pin<Box<dyn Future<Output = Result<<Self::Entity as EntityTrait>::Model, DbErr>> + Send + 'async_trait>>
where 'a: 'async_trait, <Self::Entity as EntityTrait>::Model: IntoActiveModel<Self>, Self: ActiveModelBehavior + 'a + Send + 'async_trait, C: ConnectionTrait + 'async_trait,

Perform the UPDATE operation on an ActiveModel Read more
Source§

fn save<'a, 'async_trait, C>( self, db: &'a C, ) -> Pin<Box<dyn Future<Output = Result<Self, DbErr>> + Send + 'async_trait>>
where 'a: 'async_trait, <Self::Entity as EntityTrait>::Model: IntoActiveModel<Self>, Self: ActiveModelBehavior + 'a + Send + 'async_trait, C: ConnectionTrait + 'async_trait,

Insert the model if primary key is NotSet, update otherwise. Only works if the entity has auto increment primary key.
Source§

fn delete<'a, 'async_trait, C>( self, db: &'a C, ) -> Pin<Box<dyn Future<Output = Result<DeleteResult, DbErr>> + Send + 'async_trait>>
where 'a: 'async_trait, Self: ActiveModelBehavior + 'a + Send + 'async_trait, C: ConnectionTrait + 'async_trait,

Delete an active model by its primary key Read more
Source§

fn is_changed(&self) -> bool

Return true if any attribute of ActiveModel is Set
Source§

impl Clone for ActiveModel

Source§

fn clone(&self) -> ActiveModel

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ActiveModel

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ActiveModel

Source§

fn default() -> Self

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

impl From<Model> for ActiveModel

Source§

fn from(m: Model) -> Self

Converts to this type from the input type.
Source§

impl IntoActiveModel<ActiveModel> for Model

Source§

fn into_active_model(self) -> ActiveModel

Method to call to perform the conversion
Source§

impl PartialEq for ActiveModel

Source§

fn eq(&self, other: &ActiveModel) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl RbumCrudOperation<ActiveModel, IamConfigAddReq, IamConfigModifyReq, IamConfigSummaryResp, IamConfigDetailResp, IamConfigFilterReq> for IamConfigServ

Source§

fn get_table_name() -> &'static str

Get the name of the table Read more
Source§

fn package_add<'life0, 'life1, 'life2, 'async_trait>( add_req: &'life0 IamConfigAddReq, _: &'life1 TardisFunsInst, _: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = TardisResult<ActiveModel>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Package add request Read more
Source§

fn before_add_rbum<'life0, 'life1, 'life2, 'async_trait>( add_req: &'life0 mut IamConfigAddReq, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Pre-processing of the add request Read more
Source§

fn package_modify<'life0, 'life1, 'life2, 'life3, 'async_trait>( id: &'life0 str, modify_req: &'life1 IamConfigModifyReq, _: &'life2 TardisFunsInst, _: &'life3 TardisContext, ) -> Pin<Box<dyn Future<Output = TardisResult<ActiveModel>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Package modify request Read more
Source§

fn package_query<'life0, 'life1, 'life2, 'async_trait>( is_detail: bool, filter: &'life0 IamConfigFilterReq, _: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = TardisResult<SelectStatement>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Package query request Read more
Source§

fn get_obj_name() -> String

Get the name of the object Read more
Source§

fn get_obj_name_from(table_name: &str) -> String

Get the object name from the custom table name Read more
Source§

fn check_ownership<'life0, 'life1, 'life2, 'async_trait>( id: &'life0 str, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<(), TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Check the ownership of the specified resource id Read more
Source§

fn check_ownership_with_table_name<'life0, 'life1, 'life2, 'life3, 'async_trait>( id: &'life0 str, table_name: &'life1 str, funs: &'life2 TardisFunsInst, ctx: &'life3 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<(), TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, Self: Send + 'async_trait,

Check the ownership of the specified resource id and table name Read more
Source§

fn package_ownership_query(id: &str, ctx: &TardisContext) -> SelectStatement

Package the ownership query statement of the specified resource id Read more
Source§

fn package_ownership_query_with_table_name( id: &str, table_name: &str, ctx: &TardisContext, ) -> SelectStatement

Package the ownership query statement of the specified resource id and table name Read more
Source§

fn check_scope<'life0, 'life1, 'life2, 'life3, 'async_trait>( id: &'life0 str, table_name: &'life1 str, funs: &'life2 TardisFunsInst, ctx: &'life3 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<(), TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, Self: Send + 'async_trait,

Check the scope of the specified resource id and table name Read more
Source§

fn check_scopes<'life0, 'life1, 'life2, 'life3, 'async_trait>( values: HashMap<String, &'life0 Vec<String>>, expect_number: u64, table_name: &'life1 str, funs: &'life2 TardisFunsInst, ctx: &'life3 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<(), TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, Self: Send + 'async_trait,

Check the scope of the specified field set and table name Read more
Source§

fn check_exist_before_delete<'life0, 'life1, 'life2, 'life3, 'async_trait>( id: &'life0 str, rel_table_name: &'life1 str, rel_field_name: &'life2 str, funs: &'life3 TardisFunsInst, ) -> Pin<Box<dyn Future<Output = Result<(), TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, Self: Send + 'async_trait,

Check whether there is an association before deleting the resource with the specified id and table name. Read more
Source§

fn check_exist_with_cond_before_delete<'life0, 'life1, 'async_trait>( rel_table_name: &'life0 str, condition: Condition, funs: &'life1 TardisFunsInst, ) -> Pin<Box<dyn Future<Output = Result<(), TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: Send + 'async_trait,

Check whether there is an association before deleting the resource with the specified condition and table name. Read more
Source§

fn after_add_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>( _: &'life0 str, _: &'life1 AddReq, _: &'life2 TardisFunsInst, _: &'life3 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<(), TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Post-processing of the add request Read more
Source§

fn add_rbum<'life0, 'life1, 'life2, 'async_trait>( add_req: &'life0 mut AddReq, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<String, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Add resource Read more
Source§

fn before_modify_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>( id: &'life0 str, _: &'life1 mut ModifyReq, funs: &'life2 TardisFunsInst, ctx: &'life3 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<(), TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, Self: Send + 'async_trait,

Pre-processing of the modify request Read more
Source§

fn after_modify_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>( _: &'life0 str, _: &'life1 mut ModifyReq, _: &'life2 TardisFunsInst, _: &'life3 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<(), TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Post-processing of the modify request Read more
Source§

fn modify_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>( id: &'life0 str, modify_req: &'life1 mut ModifyReq, funs: &'life2 TardisFunsInst, ctx: &'life3 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<(), TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, Self: Send + 'async_trait,

Modify resource Read more
Source§

fn before_delete_rbum<'life0, 'life1, 'life2, 'async_trait>( id: &'life0 str, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<Option<DetailResp>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Pre-processing of the delete request Read more
Source§

fn after_delete_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>( _: &'life0 str, _: &'life1 Option<DetailResp>, _: &'life2 TardisFunsInst, _: &'life3 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<(), TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Post-processing of the delete request Read more
Source§

fn delete_rbum<'life0, 'life1, 'life2, 'async_trait>( id: &'life0 str, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<u64, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Delete resource Read more
Source§

fn peek_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>( id: &'life0 str, filter: &'life1 FilterReq, funs: &'life2 TardisFunsInst, ctx: &'life3 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<SummaryResp, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, Self: Send + 'async_trait,

Query and get a resource summary Read more
Source§

fn do_peek_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>( id: &'life0 str, filter: &'life1 FilterReq, funs: &'life2 TardisFunsInst, ctx: &'life3 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<SummaryResp, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, Self: Send + 'async_trait,

Query and get a resource summary Read more
Source§

fn get_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>( id: &'life0 str, filter: &'life1 FilterReq, funs: &'life2 TardisFunsInst, ctx: &'life3 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<DetailResp, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, Self: Send + 'async_trait,

Query and get a resource detail Read more
Source§

fn do_get_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>( id: &'life0 str, filter: &'life1 FilterReq, funs: &'life2 TardisFunsInst, ctx: &'life3 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<DetailResp, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, Self: Send + 'async_trait,

Query and get a resource detail Read more
Source§

fn paginate_id_rbums<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, page_number: u32, page_size: u32, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<TardisPage<String>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and page to get the resource id set Read more
Source§

fn do_paginate_id_rbums<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, page_number: u32, page_size: u32, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<TardisPage<String>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and page to get the resource id set Read more
Source§

fn paginate_id_name_rbums<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, page_number: u32, page_size: u32, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<TardisPage<IdNameResp>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and page to get the resource id and name set Read more
Source§

fn do_paginate_id_name_rbums<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, page_number: u32, page_size: u32, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<TardisPage<IdNameResp>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and page to get the resource id and name set Read more
Source§

fn paginate_rbums<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, page_number: u32, page_size: u32, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<TardisPage<SummaryResp>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and page to get the resource summary set Read more
Source§

fn do_paginate_rbums<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, page_number: u32, page_size: u32, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<TardisPage<SummaryResp>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and page to get the resource summary set Read more
Source§

fn paginate_detail_rbums<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, page_number: u32, page_size: u32, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<TardisPage<DetailResp>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and page to get the resource detail set Read more
Source§

fn do_paginate_detail_rbums<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, page_number: u32, page_size: u32, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<TardisPage<DetailResp>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and page to get the resource detail set Read more
Source§

fn find_one_rbum<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<Option<SummaryResp>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and get a resource summary Read more
Source§

fn do_find_one_rbum<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<Option<SummaryResp>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and get a resource summary Read more
Source§

fn find_id_rbums<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and get the resource id set Read more
Source§

fn do_find_id_rbums<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and get the resource id set Read more
Source§

fn find_id_name_rbums<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, String>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and get the resource id and name set Read more
Source§

fn do_find_id_name_rbums<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, String>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and get the resource id and name set Read more
Source§

fn find_rbums<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<Vec<SummaryResp>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and get the resource summary set Read more
Source§

fn do_find_rbums<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<Vec<SummaryResp>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and get the resource summary set Read more
Source§

fn find_one_detail_rbum<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<Option<DetailResp>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and get a resource detail Read more
Source§

fn do_find_one_detail_rbum<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<Option<DetailResp>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and get a resource detail Read more
Source§

fn find_detail_rbums<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<Vec<DetailResp>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and get the resource detail set Read more
Source§

fn do_find_detail_rbums<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<Vec<DetailResp>, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and get the resource detail set Read more
Source§

fn count_rbums<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<u64, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and count the number of resources Read more
Source§

fn do_count_rbums<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<u64, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and count the number of resources Read more
Source§

fn exist_rbum<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 FilterReq, funs: &'life1 TardisFunsInst, ctx: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = Result<bool, TardisError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: Send + 'async_trait,

Query and check whether the resource exists Read more
Source§

impl TardisActiveModel for ActiveModel

Generated by Tardis

Source§

fn fill_ctx(&mut self, ctx: &TardisContext, is_insert: bool)

Fill TardisContext / 填充TardisContext Read more
Source§

fn create_table_statement(db: DbBackend) -> TableCreateStatement

Create table / 创建表 Read more
Source§

fn create_index_statement() -> Vec<IndexCreateStatement>

Create index / 创建索引 Read more
Source§

fn init( db: DatabaseBackend, update_time_field: Option<&str>, compatible_type: CompatibleType, ) -> (TableCreateStatement, Vec<IndexCreateStatement>, Vec<String>)

Create table and index / 创建表和索引 Read more
Source§

fn create_function_sqls( db: DatabaseBackend, table_name: &str, update_time_field: Option<&str>, compatible_type: CompatibleType, ) -> Vec<String>

Create functions / 创建函数
Source§

fn create_function_postgresql_auto_update_time( table_name: &str, update_time_field: &str, compatible_type: CompatibleType, ) -> Vec<String>

Source§

impl TryFrom<ActiveModel> for Model

Source§

type Error = DbErr

The type returned in the event of a conversion error.
Source§

fn try_from(a: ActiveModel) -> Result<Self, DbErr>

Performs the conversion.
Source§

impl TryIntoModel<Model> for ActiveModel

Source§

fn try_into_model(self) -> Result<Model, DbErr>

Method to call to perform the conversion
Source§

impl StructuralPartialEq for ActiveModel

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Chain<T> for T

Source§

fn len(&self) -> usize

The number of items that this chain link consists of.
Source§

fn append_to(self, v: &mut Vec<T>)

Append the elements in this link to the chain.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Container<T> for T
where T: Clone,

Source§

type Iter = Once<T>

An iterator over the items within this container, by value.
Source§

fn get_iter(&self) -> <T as Container<T>>::Iter

Iterate over the elements of the container (using internal iteration because GATs are unstable).
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<A> IntoActiveModel<A> for A

Source§

fn into_active_model(self) -> A

Method to call to perform the conversion
Source§

impl<T> IntoEither for T

Source§

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> OrderedContainer<T> for T
where T: Clone,