Struct ActiveModel

Source
pub struct ActiveModel {
    pub id: ActiveValue<String>,
    pub icon: ActiveValue<String>,
    pub sort: ActiveValue<i64>,
    pub contact_phone: ActiveValue<String>,
    pub own_paths: ActiveValue<String>,
}
Expand description

Generated by sea-orm-macros

Fields§

§id: ActiveValue<String>

Generated by sea-orm-macros

§icon: ActiveValue<String>

Generated by sea-orm-macros

§sort: ActiveValue<i64>

Generated by sea-orm-macros

§contact_phone: ActiveValue<String>

Generated by sea-orm-macros

§own_paths: ActiveValue<String>

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 set(&mut self, c: <Self::Entity as EntityTrait>::Column, v: Value)

Set the Value into an ActiveModel
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 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 RbumItemCrudOperation<ActiveModel, IamAppAddReq, IamAppModifyReq, IamAppSummaryResp, IamAppDetailResp, IamAppFilterReq> for IamAppServ

Source§

fn get_ext_table_name() -> &'static str

Get the name of the extended table Read more
Source§

fn get_rbum_kind_id() -> Option<String>

Get default resource kind Read more
Source§

fn get_rbum_domain_id() -> Option<String>

Get default resource domain Read more
Source§

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

Package add request of the kernel part of the resource item Read more
Source§

fn package_ext_add<'life0, 'life1, 'life2, 'life3, 'async_trait>( id: &'life0 str, add_req: &'life1 IamAppAddReq, _: &'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 add request of the extended part of the resource item Read more
Source§

fn package_item_modify<'life0, 'life1, 'life2, 'life3, 'async_trait>( _: &'life0 str, modify_req: &'life1 IamAppModifyReq, _: &'life2 TardisFunsInst, _: &'life3 TardisContext, ) -> Pin<Box<dyn Future<Output = TardisResult<Option<RbumItemKernelModifyReq>>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Package modify request of the kernel part of the resource item Read more
Source§

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

Package modify request of the extended part of the resource item Read more
Source§

fn after_add_item<'life0, 'life1, 'life2, 'life3, 'async_trait>( id: &'life0 str, _: &'life1 mut IamAppAddReq, funs: &'life2 TardisFunsInst, ctx: &'life3 TardisContext, ) -> Pin<Box<dyn Future<Output = TardisResult<()>> + 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 after_modify_item<'life0, 'life1, 'life2, 'life3, 'async_trait>( id: &'life0 str, modify_req: &'life1 mut IamAppModifyReq, funs: &'life2 TardisFunsInst, ctx: &'life3 TardisContext, ) -> Pin<Box<dyn Future<Output = TardisResult<()>> + 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 before_delete_item<'life0, 'life1, 'life2, 'async_trait>( _: &'life0 str, funs: &'life1 TardisFunsInst, _: &'life2 TardisContext, ) -> Pin<Box<dyn Future<Output = TardisResult<Option<IamAppDetailResp>>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Pre-processing of the delete request Read more
Source§

fn package_ext_query<'life0, 'life1, 'life2, 'life3, 'async_trait>( query: &'life0 mut SelectStatement, __arg1: bool, filter: &'life1 IamAppFilterReq, _: &'life2 TardisFunsInst, _: &'life3 TardisContext, ) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Package query request of the extended part of the resource item Read more
Source§

fn get_obj_name() -> String

Get the name of the extended object Read more
Source§

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

Pre-processing of the add request Read more
Source§

fn add_item<'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 item Read more
Source§

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

Add resource item with simple relationship (the added resource item is the source party) Read more
Source§

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

Add resource item with simple relationship (the added resource item is the target party) Read more
Source§

fn before_modify_item<'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,

Pre-processing of the modify request Read more
Source§

fn modify_item<'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 item Read more
Source§

fn after_delete_item<'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_item<'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 item Read more
Source§

fn delete_item_with_all_rels<'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 item with all relationships Read more
Source§

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

Package query request of the kernel part of the resource item Read more
Source§

fn package_rel( query: &mut SelectStatement, rel_table: Alias, rbum_item_rel_filter_req: &RbumItemRelFilterReq, )

Package condition of the relationship Read more
Source§

fn package_set_rel( query: &mut SelectStatement, rel_table: Alias, rbum_set_rel_filter_req: &RbumSetItemRelFilterReq, )

Package condition of the resource set Read more
Source§

fn peek_item<'life0, 'life1, 'life2, 'life3, 'async_trait>( id: &'life0 str, filter: &'life1 ItemFilterReq, 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 item summary Read more
Source§

fn do_peek_item<'life0, 'life1, 'life2, 'life3, 'async_trait>( id: &'life0 str, filter: &'life1 ItemFilterReq, 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 item summary Read more
Source§

fn get_item<'life0, 'life1, 'life2, 'life3, 'async_trait>( id: &'life0 str, filter: &'life1 ItemFilterReq, 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 item detail Read more
Source§

fn do_get_item<'life0, 'life1, 'life2, 'life3, 'async_trait>( id: &'life0 str, filter: &'life1 ItemFilterReq, 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 item detail Read more
Source§

fn paginate_id_items<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item id set Read more
Source§

fn do_paginate_id_items<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item id set Read more
Source§

fn paginate_id_name_items<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item id and name set Read more
Source§

fn do_paginate_id_name_items<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item id and name set Read more
Source§

fn paginate_items<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item summary set Read more
Source§

fn do_paginate_items<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item summary set Read more
Source§

fn paginate_detail_items<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item detail set Read more
Source§

fn do_paginate_detail_items<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item detail set Read more
Source§

fn find_one_item<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item summary Read more
Source§

fn do_find_one_item<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item summary Read more
Source§

fn find_id_items<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item id set Read more
Source§

fn do_find_id_items<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item id set Read more
Source§

fn find_id_name_items<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item id and name set Read more
Source§

fn do_find_id_name_items<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item id and name set Read more
Source§

fn find_items<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item summary set Read more
Source§

fn do_find_items<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item summary set Read more
Source§

fn find_one_detail_item<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item detail Read more
Source§

fn do_find_one_detail_item<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item detail Read more
Source§

fn find_detail_items<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item detail set Read more
Source§

fn do_find_detail_items<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 item detail set Read more
Source§

fn count_items<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 resource items Read more
Source§

fn do_count_items<'life0, 'life1, 'life2, 'async_trait>( filter: &'life0 ItemFilterReq, 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 resource items Read more
Source§

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

Whether the resource item is disabled 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> ErasedDestructor for T
where T: 'static,

Source§

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