Skip to main content

FinancialStatement

Struct FinancialStatement 

Source
pub struct FinancialStatement {
Show 62 fields pub id: Uuid, pub statement_number: String, pub statement_type: StatementType, pub name: String, pub fiscal_period_id: Option<Uuid>, pub fiscal_year: i32, pub fiscal_month: Option<i32>, pub as_of_date: NaiveDate, pub period_start: Option<NaiveDate>, pub period_end: Option<NaiveDate>, pub is_comparative: bool, pub comparative_period_id: Option<Uuid>, pub comparative_as_of_date: Option<NaiveDate>, pub status: StatementStatus, pub total_current_assets: Option<Decimal>, pub total_non_current_assets: Option<Decimal>, pub total_assets: Option<Decimal>, pub total_current_liabilities: Option<Decimal>, pub total_non_current_liabilities: Option<Decimal>, pub total_liabilities: Option<Decimal>, pub total_equity: Option<Decimal>, pub balance_check: bool, pub balance_difference: Option<Decimal>, pub total_revenue: Option<Decimal>, pub total_cogs: Option<Decimal>, pub gross_profit: Option<Decimal>, pub gross_profit_margin: Option<Decimal>, pub total_operating_expenses: Option<Decimal>, pub operating_income: Option<Decimal>, pub operating_margin: Option<Decimal>, pub total_other_income: Option<Decimal>, pub total_other_expenses: Option<Decimal>, pub income_before_tax: Option<Decimal>, pub tax_expense: Option<Decimal>, pub net_income: Option<Decimal>, pub net_profit_margin: Option<Decimal>, pub cash_from_operations: Option<Decimal>, pub cash_from_investing: Option<Decimal>, pub cash_from_financing: Option<Decimal>, pub net_cash_change: Option<Decimal>, pub beginning_cash: Option<Decimal>, pub ending_cash: Option<Decimal>, pub total_debits: Option<Decimal>, pub total_credits: Option<Decimal>, pub trial_balance_check: bool, pub line_items: Value, pub comparative_data: Value, pub variance_data: Value, pub notes: Value, pub management_notes: Option<String>, pub generated_at: Option<DateTime<Utc>>, pub generated_by: Option<Uuid>, pub generation_parameters: Value, pub reviewed_at: Option<DateTime<Utc>>, pub reviewed_by: Option<Uuid>, pub approved_at: Option<DateTime<Utc>>, pub approved_by: Option<Uuid>, pub published_at: Option<DateTime<Utc>>, pub pdf_url: Option<String>, pub excel_url: Option<String>, pub currency: String, pub metadata: AuditMetadata,
}

Fields§

§id: Uuid§statement_number: String§statement_type: StatementType§name: String§fiscal_period_id: Option<Uuid>§fiscal_year: i32§fiscal_month: Option<i32>§as_of_date: NaiveDate§period_start: Option<NaiveDate>§period_end: Option<NaiveDate>§is_comparative: bool§comparative_period_id: Option<Uuid>§comparative_as_of_date: Option<NaiveDate>§status: StatementStatus§total_current_assets: Option<Decimal>§total_non_current_assets: Option<Decimal>§total_assets: Option<Decimal>§total_current_liabilities: Option<Decimal>§total_non_current_liabilities: Option<Decimal>§total_liabilities: Option<Decimal>§total_equity: Option<Decimal>§balance_check: bool§balance_difference: Option<Decimal>§total_revenue: Option<Decimal>§total_cogs: Option<Decimal>§gross_profit: Option<Decimal>§gross_profit_margin: Option<Decimal>§total_operating_expenses: Option<Decimal>§operating_income: Option<Decimal>§operating_margin: Option<Decimal>§total_other_income: Option<Decimal>§total_other_expenses: Option<Decimal>§income_before_tax: Option<Decimal>§tax_expense: Option<Decimal>§net_income: Option<Decimal>§net_profit_margin: Option<Decimal>§cash_from_operations: Option<Decimal>§cash_from_investing: Option<Decimal>§cash_from_financing: Option<Decimal>§net_cash_change: Option<Decimal>§beginning_cash: Option<Decimal>§ending_cash: Option<Decimal>§total_debits: Option<Decimal>§total_credits: Option<Decimal>§trial_balance_check: bool§line_items: Value§comparative_data: Value§variance_data: Value§notes: Value§management_notes: Option<String>§generated_at: Option<DateTime<Utc>>§generated_by: Option<Uuid>§generation_parameters: Value§reviewed_at: Option<DateTime<Utc>>§reviewed_by: Option<Uuid>§approved_at: Option<DateTime<Utc>>§approved_by: Option<Uuid>§published_at: Option<DateTime<Utc>>§pdf_url: Option<String>§excel_url: Option<String>§currency: String§metadata: AuditMetadata

Implementations§

Source§

impl FinancialStatement

Source

pub fn builder() -> FinancialStatementBuilder

Create a builder for FinancialStatement

Source

pub fn new( statement_number: String, statement_type: StatementType, name: String, fiscal_year: i32, as_of_date: NaiveDate, is_comparative: bool, status: StatementStatus, balance_check: bool, trial_balance_check: bool, line_items: Value, comparative_data: Value, variance_data: Value, notes: Value, generation_parameters: Value, currency: String, ) -> Self

Create a new FinancialStatement with required fields

Source

pub fn id(&self) -> &Uuid

Get the entity’s unique identifier

Source

pub fn typed_id(&self) -> FinancialStatementId

Get a strongly-typed ID for this entity

Source

pub fn created_at(&self) -> Option<&DateTime<Utc>>

Get when this entity was created

Source

pub fn updated_at(&self) -> Option<&DateTime<Utc>>

Get when this entity was last updated

Source

pub fn is_deleted(&self) -> bool

Check if this entity is soft deleted

Source

pub fn is_active(&self) -> bool

Check if this entity is active (not deleted)

Source

pub fn deleted_at(&self) -> Option<&DateTime<Utc>>

Get when this entity was deleted

Source

pub fn created_by(&self) -> Option<&Uuid>

Get who created this entity

Source

pub fn updated_by(&self) -> Option<&Uuid>

Get who last updated this entity

Source

pub fn deleted_by(&self) -> Option<&Uuid>

Get who deleted this entity

Source

pub fn status(&self) -> &StatementStatus

Get the current status

Source

pub fn with_fiscal_period_id(self, value: Uuid) -> Self

Set the fiscal_period_id field (chainable)

Source

pub fn with_fiscal_month(self, value: i32) -> Self

Set the fiscal_month field (chainable)

Source

pub fn with_period_start(self, value: NaiveDate) -> Self

Set the period_start field (chainable)

Source

pub fn with_period_end(self, value: NaiveDate) -> Self

Set the period_end field (chainable)

Source

pub fn with_comparative_period_id(self, value: Uuid) -> Self

Set the comparative_period_id field (chainable)

Source

pub fn with_comparative_as_of_date(self, value: NaiveDate) -> Self

Set the comparative_as_of_date field (chainable)

Source

pub fn with_total_current_assets(self, value: Decimal) -> Self

Set the total_current_assets field (chainable)

Source

pub fn with_total_non_current_assets(self, value: Decimal) -> Self

Set the total_non_current_assets field (chainable)

Source

pub fn with_total_assets(self, value: Decimal) -> Self

Set the total_assets field (chainable)

Source

pub fn with_total_current_liabilities(self, value: Decimal) -> Self

Set the total_current_liabilities field (chainable)

Source

pub fn with_total_non_current_liabilities(self, value: Decimal) -> Self

Set the total_non_current_liabilities field (chainable)

Source

pub fn with_total_liabilities(self, value: Decimal) -> Self

Set the total_liabilities field (chainable)

Source

pub fn with_total_equity(self, value: Decimal) -> Self

Set the total_equity field (chainable)

Source

pub fn with_balance_difference(self, value: Decimal) -> Self

Set the balance_difference field (chainable)

Source

pub fn with_total_revenue(self, value: Decimal) -> Self

Set the total_revenue field (chainable)

Source

pub fn with_total_cogs(self, value: Decimal) -> Self

Set the total_cogs field (chainable)

Source

pub fn with_gross_profit(self, value: Decimal) -> Self

Set the gross_profit field (chainable)

Source

pub fn with_gross_profit_margin(self, value: Decimal) -> Self

Set the gross_profit_margin field (chainable)

Source

pub fn with_total_operating_expenses(self, value: Decimal) -> Self

Set the total_operating_expenses field (chainable)

Source

pub fn with_operating_income(self, value: Decimal) -> Self

Set the operating_income field (chainable)

Source

pub fn with_operating_margin(self, value: Decimal) -> Self

Set the operating_margin field (chainable)

Source

pub fn with_total_other_income(self, value: Decimal) -> Self

Set the total_other_income field (chainable)

Source

pub fn with_total_other_expenses(self, value: Decimal) -> Self

Set the total_other_expenses field (chainable)

Source

pub fn with_income_before_tax(self, value: Decimal) -> Self

Set the income_before_tax field (chainable)

Source

pub fn with_tax_expense(self, value: Decimal) -> Self

Set the tax_expense field (chainable)

Source

pub fn with_net_income(self, value: Decimal) -> Self

Set the net_income field (chainable)

Source

pub fn with_net_profit_margin(self, value: Decimal) -> Self

Set the net_profit_margin field (chainable)

Source

pub fn with_cash_from_operations(self, value: Decimal) -> Self

Set the cash_from_operations field (chainable)

Source

pub fn with_cash_from_investing(self, value: Decimal) -> Self

Set the cash_from_investing field (chainable)

Source

pub fn with_cash_from_financing(self, value: Decimal) -> Self

Set the cash_from_financing field (chainable)

Source

pub fn with_net_cash_change(self, value: Decimal) -> Self

Set the net_cash_change field (chainable)

Source

pub fn with_beginning_cash(self, value: Decimal) -> Self

Set the beginning_cash field (chainable)

Source

pub fn with_ending_cash(self, value: Decimal) -> Self

Set the ending_cash field (chainable)

Source

pub fn with_total_debits(self, value: Decimal) -> Self

Set the total_debits field (chainable)

Source

pub fn with_total_credits(self, value: Decimal) -> Self

Set the total_credits field (chainable)

Source

pub fn with_management_notes(self, value: String) -> Self

Set the management_notes field (chainable)

Source

pub fn with_generated_at(self, value: DateTime<Utc>) -> Self

Set the generated_at field (chainable)

Source

pub fn with_generated_by(self, value: Uuid) -> Self

Set the generated_by field (chainable)

Source

pub fn with_reviewed_at(self, value: DateTime<Utc>) -> Self

Set the reviewed_at field (chainable)

Source

pub fn with_reviewed_by(self, value: Uuid) -> Self

Set the reviewed_by field (chainable)

Source

pub fn with_approved_at(self, value: DateTime<Utc>) -> Self

Set the approved_at field (chainable)

Source

pub fn with_approved_by(self, value: Uuid) -> Self

Set the approved_by field (chainable)

Source

pub fn with_published_at(self, value: DateTime<Utc>) -> Self

Set the published_at field (chainable)

Source

pub fn with_pdf_url(self, value: String) -> Self

Set the pdf_url field (chainable)

Source

pub fn with_excel_url(self, value: String) -> Self

Set the excel_url field (chainable)

Source

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<UpdateFinancialStatementDto> for FinancialStatement

Source§

impl Clone for FinancialStatement

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl CrudRepository<FinancialStatement> for FinancialStatementRepository

Hydrate ?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: FinancialStatement, ) -> Pin<Box<dyn Future<Output = Result<FinancialStatement, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create a new entity
Source§

fn find_by_id<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Find entity by ID (excluding soft-deleted)
Source§

fn find_by_id_including_deleted<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Find entity by ID (including soft-deleted, for trash operations)
Source§

fn update<'life0, 'async_trait>( &'life0 self, entity: FinancialStatement, ) -> Pin<Box<dyn Future<Output = Result<FinancialStatement, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Update an existing entity
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,

Soft delete an entity
Source§

fn restore<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Restore a soft-deleted entity
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,

Permanently delete an entity
Source§

fn list<'life0, 'async_trait>( &'life0 self, page: u32, limit: u32, ) -> Pin<Box<dyn Future<Output = Result<(Vec<FinancialStatement>, u64), RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List entities with pagination (excluding soft-deleted)
Source§

fn list_filtered<'life0, 'async_trait>( &'life0 self, page: u32, limit: u32, filters: HashMap<String, String>, ) -> Pin<Box<dyn Future<Output = Result<(Vec<FinancialStatement>, u64), RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List entities with pagination and filters (excluding soft-deleted) Read more
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<FinancialStatement>, 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>

Group and reduce entities under the same filters as list_filtered. Read more
Source§

fn 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<FinancialStatement>, u64), RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List soft-deleted entities with pagination
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,

Count all entities (excluding soft-deleted)
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,

Count soft-deleted entities
Source§

fn bulk_create<'life0, 'async_trait>( &'life0 self, entities: Vec<FinancialStatement>, ) -> Pin<Box<dyn Future<Output = Result<Vec<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Bulk create entities
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,

Permanently delete all soft-deleted entities
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,

Soft-delete many entities by id. Returns the number affected.
Source§

fn bulk_restore<'life0, 'life1, 'async_trait>( &'life0 self, ids: &'life1 [String], ) -> Pin<Box<dyn Future<Output = Result<Vec<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Restore many soft-deleted entities by id. Returns the restored entities.
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,

Permanently delete many entities by id. Returns the number affected.
Source§

fn restore_all<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Restore every soft-deleted entity. Returns the restored entities.
Source§

fn bulk_update<'life0, 'async_trait>( &'life0 self, entities: Vec<FinancialStatement>, ) -> Pin<Box<dyn Future<Output = Result<Vec<FinancialStatement>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Update many entities atomically. Returns the updated entities.
Source§

fn exists<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<bool, RepositoryError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Check if an entity exists by ID
Source§

impl Debug for FinancialStatement

Source§

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

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

impl<'de> Deserialize<'de> for FinancialStatement

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Entity for FinancialStatement

Source§

type Id = Uuid

The type of the entity’s unique identifier
Source§

fn entity_id(&self) -> &Self::Id

Get the entity’s unique identifier
Source§

fn entity_type() -> &'static str

Get the entity type name
Source§

impl EntityRepoMeta for FinancialStatement

Source§

fn column_types() -> HashMap<String, String>

PostgreSQL type hints for filter/sort (e.g. {"id": "uuid"}).
Source§

fn search_fields() -> &'static [&'static str]

Text columns to include in full-text / ILIKE search.
Source§

fn relations() -> &'static [(&'static str, &'static str, &'static str)]

To-one relations expandable via ?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]

Response fields visible only to the row owner and platform/root callers (@private). Stripped for everyone else.
Source§

fn secret_fields() -> &'static [&'static str]

Response fields (camelCase) that never leave the server (@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]

The @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>

The response field (camelCase) holding the owner/company id (@owner), compared against the caller’s access scope to decide private-field visibility. None = the entity has no owner concept.
Source§

fn company_field() -> Option<&'static str>

The DB column that scopes rows to a company (snake_case, e.g. company_id). None = the entity is global (reference data) and is not fenced. Read more
Source§

impl From<&FinancialStatement> for FinancialStatementResponseDto

Source§

fn from(entity: &FinancialStatement) -> Self

Converts to this type from the input type.
Source§

impl From<CreateFinancialStatementDto> for FinancialStatement

Source§

fn from(dto: CreateFinancialStatementDto) -> Self

Converts to this type from the input type.
Source§

impl From<FinancialStatement> for FinancialStatementResponseDto

Source§

fn from(entity: FinancialStatement) -> Self

Converts to this type from the input type.
Source§

impl From<FinancialStatement> for FinancialStatementSummaryDto

Source§

fn from(entity: FinancialStatement) -> Self

Converts to this type from the input type.
Source§

impl FromCreateDto<CreateFinancialStatementDto> for FinancialStatement

Source§

impl<'a, R: Row> FromRow<'a, R> for FinancialStatement

Source§

fn from_row(__row: &'a R) -> Result<Self>

Source§

impl PersistentEntity for FinancialStatement

Source§

fn entity_id(&self) -> String

Get the entity’s unique identifier
Source§

fn set_entity_id(&mut self, id: String)

Set the entity’s unique identifier
Source§

fn created_at(&self) -> Option<DateTime<Utc>>

Get creation timestamp
Source§

fn set_created_at(&mut self, ts: DateTime<Utc>)

Set creation timestamp
Source§

fn updated_at(&self) -> Option<DateTime<Utc>>

Get last update timestamp
Source§

fn set_updated_at(&mut self, ts: DateTime<Utc>)

Set last update timestamp
Source§

fn deleted_at(&self) -> Option<DateTime<Utc>>

Get soft delete timestamp (None if not deleted)
Source§

fn set_deleted_at(&mut self, ts: Option<DateTime<Utc>>)

Set soft delete timestamp
Source§

fn is_deleted(&self) -> bool

Check if entity is soft-deleted
Source§

fn mark_deleted(&mut self)

Mark entity as deleted (soft delete)
Source§

fn restore(&mut self)

Restore a soft-deleted entity
Source§

fn touch(&mut self)

Touch the entity (update timestamp)
Source§

fn generate_id() -> String

Generate a new ID for this entity type
Source§

fn write_protected_fields() -> &'static [&'static str]

Fields that a generic write (PUT, PATCH and their bulk forms) may not change, by their serialized name. Read more
Source§

impl Serialize for FinancialStatement

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl WriteGuard<FinancialStatement> for FinancialStatementRowRules

Source§

fn check<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 WriteCtx<'life2, FinancialStatement>, ) -> Pin<Box<dyn Future<Output = GuardOutcome> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

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<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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
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<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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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 = !

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

fn try_from(value: U) -> Result<T, !>

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