pub struct Journal {Show 46 fields
pub id: Uuid,
pub journal_number: String,
pub reference_number: Option<String>,
pub journal_type: JournalType,
pub branch_id: Option<Uuid>,
pub transaction_date: NaiveDate,
pub posting_date: Option<NaiveDate>,
pub fiscal_period_id: Option<Uuid>,
pub fiscal_year: Option<i32>,
pub fiscal_month: Option<i32>,
pub description: String,
pub notes: Option<String>,
pub currency: String,
pub total_debit: Decimal,
pub total_credit: Decimal,
pub line_count: i32,
pub source: JournalSource,
pub source_type: Option<String>,
pub source_id: Option<Uuid>,
pub source_reference: Option<String>,
pub is_reversed: bool,
pub reversed_by_id: Option<Uuid>,
pub reversed_at: Option<DateTime<Utc>>,
pub reversal_reason: Option<String>,
pub reverses_id: Option<Uuid>,
pub is_reversing: bool,
pub auto_reverse: bool,
pub auto_reverse_date: Option<NaiveDate>,
pub status: JournalStatus,
pub requires_approval: bool,
pub approval_threshold: Option<Decimal>,
pub submitted_at: Option<DateTime<Utc>>,
pub submitted_by: Option<Uuid>,
pub approved_at: Option<DateTime<Utc>>,
pub approved_by: Option<Uuid>,
pub rejected_at: Option<DateTime<Utc>>,
pub rejected_by: Option<Uuid>,
pub rejection_reason: Option<String>,
pub posted_at: Option<DateTime<Utc>>,
pub posted_by: Option<Uuid>,
pub is_voided: bool,
pub voided_at: Option<DateTime<Utc>>,
pub voided_by: Option<Uuid>,
pub void_reason: Option<String>,
pub attachments: Value,
pub metadata: AuditMetadata,
}Fields§
§id: Uuid§journal_number: String§reference_number: Option<String>§journal_type: JournalType§branch_id: Option<Uuid>§transaction_date: NaiveDate§posting_date: Option<NaiveDate>§fiscal_period_id: Option<Uuid>§fiscal_year: Option<i32>§fiscal_month: Option<i32>§description: String§notes: Option<String>§currency: String§total_debit: Decimal§total_credit: Decimal§line_count: i32§source: JournalSource§source_type: Option<String>§source_id: Option<Uuid>§source_reference: Option<String>§is_reversed: bool§reversed_by_id: Option<Uuid>§reversed_at: Option<DateTime<Utc>>§reversal_reason: Option<String>§reverses_id: Option<Uuid>§is_reversing: bool§auto_reverse: bool§auto_reverse_date: Option<NaiveDate>§status: JournalStatus§requires_approval: bool§approval_threshold: Option<Decimal>§submitted_at: Option<DateTime<Utc>>§submitted_by: Option<Uuid>§approved_at: Option<DateTime<Utc>>§approved_by: Option<Uuid>§rejected_at: Option<DateTime<Utc>>§rejected_by: Option<Uuid>§rejection_reason: Option<String>§posted_at: Option<DateTime<Utc>>§posted_by: Option<Uuid>§is_voided: bool§voided_at: Option<DateTime<Utc>>§voided_by: Option<Uuid>§void_reason: Option<String>§attachments: Value§metadata: AuditMetadataImplementations§
Source§impl Journal
impl Journal
Sourcepub fn builder() -> JournalBuilder
pub fn builder() -> JournalBuilder
Create a builder for Journal
Sourcepub fn new(
journal_number: String,
journal_type: JournalType,
transaction_date: NaiveDate,
description: String,
currency: String,
total_debit: Decimal,
total_credit: Decimal,
line_count: i32,
source: JournalSource,
is_reversed: bool,
is_reversing: bool,
auto_reverse: bool,
status: JournalStatus,
requires_approval: bool,
is_voided: bool,
attachments: Value,
) -> Self
pub fn new( journal_number: String, journal_type: JournalType, transaction_date: NaiveDate, description: String, currency: String, total_debit: Decimal, total_credit: Decimal, line_count: i32, source: JournalSource, is_reversed: bool, is_reversing: bool, auto_reverse: bool, status: JournalStatus, requires_approval: bool, is_voided: bool, attachments: Value, ) -> Self
Create a new Journal with required fields
Sourcepub fn created_at(&self) -> Option<&DateTime<Utc>>
pub fn created_at(&self) -> Option<&DateTime<Utc>>
Get when this entity was created
Sourcepub fn updated_at(&self) -> Option<&DateTime<Utc>>
pub fn updated_at(&self) -> Option<&DateTime<Utc>>
Get when this entity was last updated
Sourcepub fn is_deleted(&self) -> bool
pub fn is_deleted(&self) -> bool
Check if this entity is soft deleted
Sourcepub fn deleted_at(&self) -> Option<&DateTime<Utc>>
pub fn deleted_at(&self) -> Option<&DateTime<Utc>>
Get when this entity was deleted
Sourcepub fn created_by(&self) -> Option<&Uuid>
pub fn created_by(&self) -> Option<&Uuid>
Get who created this entity
Sourcepub fn updated_by(&self) -> Option<&Uuid>
pub fn updated_by(&self) -> Option<&Uuid>
Get who last updated this entity
Sourcepub fn deleted_by(&self) -> Option<&Uuid>
pub fn deleted_by(&self) -> Option<&Uuid>
Get who deleted this entity
Sourcepub fn status(&self) -> &JournalStatus
pub fn status(&self) -> &JournalStatus
Get the current status
Sourcepub fn with_reference_number(self, value: String) -> Self
pub fn with_reference_number(self, value: String) -> Self
Set the reference_number field (chainable)
Sourcepub fn with_branch_id(self, value: Uuid) -> Self
pub fn with_branch_id(self, value: Uuid) -> Self
Set the branch_id field (chainable)
Sourcepub fn with_posting_date(self, value: NaiveDate) -> Self
pub fn with_posting_date(self, value: NaiveDate) -> Self
Set the posting_date field (chainable)
Sourcepub fn with_fiscal_period_id(self, value: Uuid) -> Self
pub fn with_fiscal_period_id(self, value: Uuid) -> Self
Set the fiscal_period_id field (chainable)
Sourcepub fn with_fiscal_year(self, value: i32) -> Self
pub fn with_fiscal_year(self, value: i32) -> Self
Set the fiscal_year field (chainable)
Sourcepub fn with_fiscal_month(self, value: i32) -> Self
pub fn with_fiscal_month(self, value: i32) -> Self
Set the fiscal_month field (chainable)
Sourcepub fn with_notes(self, value: String) -> Self
pub fn with_notes(self, value: String) -> Self
Set the notes field (chainable)
Sourcepub fn with_source_type(self, value: String) -> Self
pub fn with_source_type(self, value: String) -> Self
Set the source_type field (chainable)
Sourcepub fn with_source_id(self, value: Uuid) -> Self
pub fn with_source_id(self, value: Uuid) -> Self
Set the source_id field (chainable)
Sourcepub fn with_source_reference(self, value: String) -> Self
pub fn with_source_reference(self, value: String) -> Self
Set the source_reference field (chainable)
Sourcepub fn with_reversed_by_id(self, value: Uuid) -> Self
pub fn with_reversed_by_id(self, value: Uuid) -> Self
Set the reversed_by_id field (chainable)
Sourcepub fn with_reversed_at(self, value: DateTime<Utc>) -> Self
pub fn with_reversed_at(self, value: DateTime<Utc>) -> Self
Set the reversed_at field (chainable)
Sourcepub fn with_reversal_reason(self, value: String) -> Self
pub fn with_reversal_reason(self, value: String) -> Self
Set the reversal_reason field (chainable)
Sourcepub fn with_reverses_id(self, value: Uuid) -> Self
pub fn with_reverses_id(self, value: Uuid) -> Self
Set the reverses_id field (chainable)
Sourcepub fn with_auto_reverse_date(self, value: NaiveDate) -> Self
pub fn with_auto_reverse_date(self, value: NaiveDate) -> Self
Set the auto_reverse_date field (chainable)
Sourcepub fn with_approval_threshold(self, value: Decimal) -> Self
pub fn with_approval_threshold(self, value: Decimal) -> Self
Set the approval_threshold field (chainable)
Sourcepub fn with_submitted_at(self, value: DateTime<Utc>) -> Self
pub fn with_submitted_at(self, value: DateTime<Utc>) -> Self
Set the submitted_at field (chainable)
Sourcepub fn with_submitted_by(self, value: Uuid) -> Self
pub fn with_submitted_by(self, value: Uuid) -> Self
Set the submitted_by field (chainable)
Sourcepub fn with_approved_at(self, value: DateTime<Utc>) -> Self
pub fn with_approved_at(self, value: DateTime<Utc>) -> Self
Set the approved_at field (chainable)
Sourcepub fn with_approved_by(self, value: Uuid) -> Self
pub fn with_approved_by(self, value: Uuid) -> Self
Set the approved_by field (chainable)
Sourcepub fn with_rejected_at(self, value: DateTime<Utc>) -> Self
pub fn with_rejected_at(self, value: DateTime<Utc>) -> Self
Set the rejected_at field (chainable)
Sourcepub fn with_rejected_by(self, value: Uuid) -> Self
pub fn with_rejected_by(self, value: Uuid) -> Self
Set the rejected_by field (chainable)
Sourcepub fn with_rejection_reason(self, value: String) -> Self
pub fn with_rejection_reason(self, value: String) -> Self
Set the rejection_reason field (chainable)
Sourcepub fn with_posted_at(self, value: DateTime<Utc>) -> Self
pub fn with_posted_at(self, value: DateTime<Utc>) -> Self
Set the posted_at field (chainable)
Sourcepub fn with_posted_by(self, value: Uuid) -> Self
pub fn with_posted_by(self, value: Uuid) -> Self
Set the posted_by field (chainable)
Sourcepub fn with_voided_at(self, value: DateTime<Utc>) -> Self
pub fn with_voided_at(self, value: DateTime<Utc>) -> Self
Set the voided_at field (chainable)
Sourcepub fn with_voided_by(self, value: Uuid) -> Self
pub fn with_voided_by(self, value: Uuid) -> Self
Set the voided_by field (chainable)
Sourcepub fn with_void_reason(self, value: String) -> Self
pub fn with_void_reason(self, value: String) -> Self
Set the void_reason field (chainable)
Sourcepub fn apply_patch(&mut self, fields: HashMap<String, Value>)
pub fn apply_patch(&mut self, fields: HashMap<String, Value>)
Apply partial updates from a map of field name to JSON value
Trait Implementations§
Source§impl ApplyUpdateDto<UpdateJournalDto> for Journal
impl ApplyUpdateDto<UpdateJournalDto> for Journal
fn apply_update(self, dto: UpdateJournalDto) -> ServiceResult<Self>
Source§impl CrudRepository<Journal> for JournalRepository
impl CrudRepository<Journal> for JournalRepository
?include= relations: fetch rows from table by id list, as JSON
(raw row_to_json). table comes from EntityRepoMeta::relations()
(generator-emitted), never client input. Default: no expansion. The
Postgres-backed generated repos override this via impl_crud_repository!.Source§fn create<'life0, 'async_trait>(
&'life0 self,
entity: Journal,
) -> Pin<Box<dyn Future<Output = Result<Journal, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create<'life0, 'async_trait>(
&'life0 self,
entity: Journal,
) -> Pin<Box<dyn Future<Output = Result<Journal, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn find_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Journal>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Journal>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn find_by_id_including_deleted<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Journal>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_by_id_including_deleted<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Journal>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn update<'life0, 'async_trait>(
&'life0 self,
entity: Journal,
) -> Pin<Box<dyn Future<Output = Result<Journal, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update<'life0, 'async_trait>(
&'life0 self,
entity: Journal,
) -> Pin<Box<dyn Future<Output = Result<Journal, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn soft_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn soft_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn restore<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Journal>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn restore<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Journal>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn hard_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn hard_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn list<'life0, 'async_trait>(
&'life0 self,
page: u32,
limit: u32,
) -> Pin<Box<dyn Future<Output = Result<(Vec<Journal>, u64), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
page: u32,
limit: u32,
) -> Pin<Box<dyn Future<Output = Result<(Vec<Journal>, u64), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn list_filtered<'life0, 'async_trait>(
&'life0 self,
page: u32,
limit: u32,
filters: HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<Journal>, u64), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_filtered<'life0, 'async_trait>(
&'life0 self,
page: u32,
limit: u32,
filters: HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<Journal>, u64), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn list_filtered_with_info<'life0, 'async_trait>(
&'life0 self,
page: u32,
limit: u32,
filters: HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<Journal>, PaginationInfo), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_filtered_with_info<'life0, 'async_trait>(
&'life0 self,
page: u32,
limit: u32,
filters: HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<Journal>, PaginationInfo), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
list_filtered, carrying the pagination info (cursor positions
included) so the HTTP layer can surface keyset paging. Default: the
tuple form with the cursor fields absent; the generated Postgres
repositories override this with the real keyset walk.Source§fn table_name(&self) -> Option<&str>
fn table_name(&self) -> Option<&str>
list_filtered. Read morefn aggregate_filtered<'life0, 'life1, 'async_trait>(
&'life0 self,
spec: &'life1 AggregateSpec,
filters: HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<AggregateResult, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn list_deleted<'life0, 'async_trait>(
&'life0 self,
page: u32,
limit: u32,
) -> Pin<Box<dyn Future<Output = Result<(Vec<Journal>, u64), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_deleted<'life0, 'async_trait>(
&'life0 self,
page: u32,
limit: u32,
) -> Pin<Box<dyn Future<Output = Result<(Vec<Journal>, u64), RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn count_deleted<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn count_deleted<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn bulk_create<'life0, 'async_trait>(
&'life0 self,
entities: Vec<Journal>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Journal>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn bulk_create<'life0, 'async_trait>(
&'life0 self,
entities: Vec<Journal>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Journal>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn empty_trash<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn empty_trash<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn bulk_soft_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn bulk_soft_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn bulk_restore<'life0, 'life1, 'async_trait>(
&'life0 self,
ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<Vec<Journal>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn bulk_restore<'life0, 'life1, 'async_trait>(
&'life0 self,
ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<Vec<Journal>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn bulk_hard_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn bulk_hard_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn restore_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Journal>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn restore_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Journal>, RepositoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<'de> Deserialize<'de> for Journal
impl<'de> Deserialize<'de> for Journal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl EntityRepoMeta for Journal
impl EntityRepoMeta for Journal
Source§fn column_types() -> HashMap<String, String>
fn column_types() -> HashMap<String, String>
{"id": "uuid"}).Source§fn search_fields() -> &'static [&'static str]
fn search_fields() -> &'static [&'static str]
Source§fn relations() -> &'static [(&'static str, &'static str, &'static str)]
fn relations() -> &'static [(&'static str, &'static str, &'static str)]
?include=<name>, as
(relation_name, target_table, local_fk_field) — all response keys
(relation_name/local_fk in camelCase; target_table is the DB table).
Default: none.Source§fn private_fields() -> &'static [&'static str]
fn private_fields() -> &'static [&'static str]
@private). Stripped for everyone else.Source§fn secret_fields() -> &'static [&'static str]
fn secret_fields() -> &'static [&'static str]
@sensitive): no
caller is served them, a platform caller or the row’s owner included.Source§fn relation_secret_fields(_relation: &str) -> &'static [&'static str]
fn relation_secret_fields(_relation: &str) -> &'static [&'static str]
@sensitive fields (camelCase response keys) of the model a to-one
relation points at, stripped from the related row an ?include= expands.
Keyed by the relation name of relations. Default: none.Source§fn owner_field() -> Option<&'static str>
fn owner_field() -> Option<&'static str>
@owner),
compared against the caller’s access scope to decide private-field
visibility. None = the entity has no owner concept.Source§impl From<&Journal> for JournalResponseDto
impl From<&Journal> for JournalResponseDto
Source§impl From<CreateJournalDto> for Journal
impl From<CreateJournalDto> for Journal
Source§fn from(dto: CreateJournalDto) -> Self
fn from(dto: CreateJournalDto) -> Self
Source§impl From<Journal> for JournalResponseDto
impl From<Journal> for JournalResponseDto
Source§impl From<Journal> for JournalSummaryDto
impl From<Journal> for JournalSummaryDto
Source§impl FromCreateDto<CreateJournalDto> for Journal
impl FromCreateDto<CreateJournalDto> for Journal
fn from_create_dto(dto: CreateJournalDto) -> ServiceResult<Self>
Source§impl<'a, R: Row> FromRow<'a, R> for Journalwhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
JournalType: Decode<'a, R::Database> + Type<R::Database>,
Option<Uuid>: Decode<'a, R::Database> + Type<R::Database>,
NaiveDate: Decode<'a, R::Database> + Type<R::Database>,
Option<NaiveDate>: Decode<'a, R::Database> + Type<R::Database>,
Option<i32>: Decode<'a, R::Database> + Type<R::Database>,
Decimal: Decode<'a, R::Database> + Type<R::Database>,
i32: Decode<'a, R::Database> + Type<R::Database>,
JournalSource: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
JournalStatus: Decode<'a, R::Database> + Type<R::Database>,
Option<Decimal>: Decode<'a, R::Database> + Type<R::Database>,
Value: Decode<'a, R::Database> + Type<R::Database>,
Json<AuditMetadata>: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for Journalwhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
JournalType: Decode<'a, R::Database> + Type<R::Database>,
Option<Uuid>: Decode<'a, R::Database> + Type<R::Database>,
NaiveDate: Decode<'a, R::Database> + Type<R::Database>,
Option<NaiveDate>: Decode<'a, R::Database> + Type<R::Database>,
Option<i32>: Decode<'a, R::Database> + Type<R::Database>,
Decimal: Decode<'a, R::Database> + Type<R::Database>,
i32: Decode<'a, R::Database> + Type<R::Database>,
JournalSource: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
JournalStatus: Decode<'a, R::Database> + Type<R::Database>,
Option<Decimal>: Decode<'a, R::Database> + Type<R::Database>,
Value: Decode<'a, R::Database> + Type<R::Database>,
Json<AuditMetadata>: Decode<'a, R::Database> + Type<R::Database>,
Source§impl PersistentEntity for Journal
impl PersistentEntity for Journal
Source§fn set_entity_id(&mut self, id: String)
fn set_entity_id(&mut self, id: String)
Source§fn set_created_at(&mut self, ts: DateTime<Utc>)
fn set_created_at(&mut self, ts: DateTime<Utc>)
Source§fn set_updated_at(&mut self, ts: DateTime<Utc>)
fn set_updated_at(&mut self, ts: DateTime<Utc>)
Source§fn is_deleted(&self) -> bool
fn is_deleted(&self) -> bool
Source§fn mark_deleted(&mut self)
fn mark_deleted(&mut self)
Source§fn generate_id() -> String
fn generate_id() -> String
Source§fn write_protected_fields() -> &'static [&'static str]
fn write_protected_fields() -> &'static [&'static str]
Source§impl WriteGuard<Journal> for JournalRowRules
impl WriteGuard<Journal> for JournalRowRules
Auto Trait Implementations§
impl Freeze for Journal
impl RefUnwindSafe for Journal
impl Send for Journal
impl Sync for Journal
impl Unpin for Journal
impl UnsafeUnpin for Journal
impl UnwindSafe for Journal
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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