MCPcopy Create free account

hub / github.com/KodrAus/rust-web-app / functions

Functions230 in github.com/KodrAus/rust-web-app

↓ 20 callersMethodset
Set a value for the given id. Changes are associated with an active transaction and not observable until the transaction is committed. If ano
src/store/value.rs:184
↓ 19 callersMethodget
(&self)
src/domain/infra/transaction/active.rs:33
↓ 17 callersMethodbegin
Begin a new transaction that will be tracked by this store. The transaction will need to be passed back to this store to commit or cancel. */
src/store/transaction.rs:111
↓ 16 callersMethodclone
(&self)
src/domain/infra/id.rs:67
↓ 15 callersMethodexecute
(self, input: TArgs)
src/domain/infra/func.rs:22
↓ 14 callersMethodget
Get a value for the given id. This will also return the current version of the value that will be needed to update it. */
src/store/value.rs:116
↓ 12 callersMethodid
(mut self, id: OrderId)
src/domain/orders/model/test_data.rs:33
↓ 11 callersMethodinto_data
(self)
src/domain/orders/model/mod.rs:112
↓ 10 callersMethodbuild
(mut self)
src/domain/orders/model/test_data.rs:46
↓ 9 callersFunctionmsg
Create an error from a message. This message may make its way to end-users so it should be friendly. */
src/domain/error.rs:44
↓ 9 callersMethodtransaction
(self, f: impl FnOnce(Resolver) -> O)
src/api/infra/request.rs:28
↓ 8 callersMethodquery
( &self, query: TQuery, )
src/domain/infra/func.rs:64
↓ 8 callersMethodset_order
(&self, transaction: &Transaction, order: Order)
src/domain/orders/model/store.rs:128
↓ 7 callersMethodadd_product
( &mut self, id: impl IdProvider<LineItemData>, product: &Product, quantity: i
src/domain/orders/model/mod.rs:187
↓ 7 callersMethodcommit
Commit a transaction, making its changes atomically observable. */
src/store/transaction.rs:143
↓ 7 callersMethodid
Get the id associated with this transaction. */
src/store/transaction.rs:70
↓ 7 callersFunctionin_memory_store
(transaction_store: TransactionStore)
src/domain/orders/model/store.rs:175
↓ 7 callersMethodresolve
(&self, register: &Register<T>)
src/domain/infra/resolver.rs:66
↓ 6 callersMethodactive_transaction
(&self)
src/domain/infra/transaction/resolver.rs:65
↓ 6 callersMethodget_order
(&self, id: OrderId)
src/domain/orders/model/store.rs:109
↓ 6 callersMethodnext
(&self)
src/domain/infra/id.rs:164
↓ 5 callersMethodby_ref
(&self)
src/domain/infra/resolver.rs:57
↓ 5 callersMethodcommand
( &self, command: TCommand, )
src/domain/infra/func.rs:48
↓ 5 callersFunctiondefault_product
()
src/domain/products/model/test_data.rs:14
↓ 5 callersMethodget_line_item
( &self, id: OrderId, line_item_id: LineItemId, )
src/domain/orders/model/store.rs:55
↓ 5 callersFunctioninit
Initialize the global logger. */
src/logger.rs:8
↓ 5 callersMethodorder_store
(&self)
src/domain/orders/resolver.rs:36
↓ 5 callersMethodset_quantity
(&mut self, quantity: TQuantity)
src/domain/orders/model/mod.rs:120
↓ 4 callersFunctionbad_input
Create an error for some bad input. This message may make its way to end-users so it should be friendly. */
src/domain/error.rs:69
↓ 4 callersMethodget_customer
(&self, id: CustomerId)
src/domain/customers/model/store.rs:21
↓ 4 callersMethodget_product
(&self, id: ProductId)
src/domain/products/model/store.rs:41
↓ 4 callersFunctionin_memory_store
(transaction_store: TransactionStore)
src/domain/customers/model/store.rs:47
↓ 4 callersFunctionin_memory_store
( transaction_store: TransactionStore, )
src/domain/products/model/store.rs:79
↓ 4 callersFunctionmsg
(err: impl fmt::Display)
src/api/infra/error.rs:54
↓ 4 callersMethodset_product
(&self, transaction: &Transaction, product: Product)
src/domain/products/model/store.rs:51
↓ 4 callersMethodstatus
(&self)
src/api/infra/error.rs:37
↓ 4 callersMethodtransaction_store
(&self)
src/domain/infra/transaction/resolver.rs:61
↓ 3 callersMethodcancel
Cancel a transaction, ensuring its changes can never be observed. */
src/store/transaction.rs:158
↓ 3 callersMethodcustomer_store
(&self)
src/domain/customers/resolver.rs:35
↓ 3 callersFunctiondefault_customer
()
src/domain/customers/model/test_data.rs:3
↓ 3 callersFunctiondefault_order
()
src/domain/orders/model/test_data.rs:7
↓ 3 callersFunctionemit
Create an error from a diagnostic event. The event will be emitted. */
src/domain/error.rs:56
↓ 3 callersFunctionexecute
( command: AddOrUpdateProduct, transaction: ActiveTransaction, store: impl OrderStore, id: imp
src/domain/orders/commands/add_or_update_product.rs:23
↓ 3 callersMethodget_all
( &self, mut filter: impl FnMut(&T) -> bool, )
src/store/value.rs:132
↓ 3 callersMethodget_product_query
Get a product. */
src/domain/products/queries/get_product.rs:28
↓ 3 callersMethodproduct_store
(&self)
src/domain/products/resolver.rs:36
↓ 3 callersMethodset_customer
(&self, transaction: &Transaction, customer: Customer)
src/domain/customers/model/store.rs:31
↓ 3 callersMethodset_line_item
(&self, transaction: &Transaction, order: OrderLineItem)
src/domain/orders/model/store.rs:82
↓ 3 callersMethodto_data
(&self)
src/domain/orders/model/mod.rs:116
↓ 2 callersMethodbuild
(self)
src/domain/customers/model/test_data.rs:29
↓ 2 callersMethodbuild
(self)
src/domain/products/model/test_data.rs:40
↓ 2 callersMethodcontains_product
(&self, product_id: ProductId)
src/domain/orders/model/mod.rs:181
↓ 2 callersFunctionexecute
( command: CreateCustomer, transaction: ActiveTransaction, store: impl CustomerStore, )
src/domain/customers/commands/create_customer.rs:20
↓ 2 callersFunctionexecute
Default implementation for a `CreateProductCommand`. */
src/domain/products/commands/create_product.rs:23
↓ 2 callersFunctionexecute
( command: CreateOrder, transaction: ActiveTransaction, store: impl OrderStore, customer_query
src/domain/orders/commands/create_order.rs:22
↓ 2 callersMethodid
(mut self, id: CustomerId)
src/domain/customers/model/test_data.rs:24
↓ 2 callersMethodid
(mut self, id: ProductId)
src/domain/products/model/test_data.rs:35
↓ 2 callersMethodinto_data
(self)
src/domain/customers/model/mod.rs:39
↓ 2 callersMethodinto_raw
(self)
src/store/value.rs:42
↓ 2 callersMethodis_committed
Whether or not a given transaction was committed. */
src/store/transaction.rs:171
↓ 1 callersMethodadd_or_update_product_command
Add a product to an order or update its quantity. */
src/domain/orders/commands/add_or_update_product.rs:64
↓ 1 callersMethodadd_product
(mut self, product: Product, builder: F)
src/domain/orders/model/test_data.rs:38
↓ 1 callersFunctionadd_value
(data: &mut Vec<i32>)
src/domain/infra/func.rs:105
↓ 1 callersMethodcommit
Commit the transaction, making its changes observable. There must be no other callers holding on to this transaction when it's committed. If
src/domain/infra/transaction/active.rs:43
↓ 1 callersMethodcreate_customer_command
Create a customer. */
src/domain/customers/commands/create_customer.rs:42
↓ 1 callersMethodcreate_order_command
Create an order. */
src/domain/orders/commands/create_order.rs:52
↓ 1 callersMethodcreate_product_command
Create a product. */
src/domain/products/commands/create_product.rs:45
↓ 1 callersMethodcustomer_id
(&self)
src/domain/customers/model/mod.rs:62
↓ 1 callersFunctiondefault_price
()
src/domain/products/model/test_data.rs:10
↓ 1 callersFunctiondefault_title
()
src/domain/products/model/test_data.rs:6
↓ 1 callersFunctionexecute
( query: GetCustomerWithOrders, store: impl CustomerStore, orders_query: impl Query<GetOrderSummar
src/domain/customers/queries/get_customer_with_orders.rs:33
↓ 1 callersFunctionexecute
(query: GetCustomer, store: impl CustomerStore)
src/domain/customers/queries/get_customer.rs:19
↓ 1 callersFunctionexecute
Default implementation for a `SetProductTitleCommand`. */
src/domain/products/commands/set_product_title.rs:22
↓ 1 callersFunctionexecute
Default implementation for a `GetProductSummariesQuery`. */
src/domain/products/queries/get_product_summaries.rs:28
↓ 1 callersFunctionexecute
Default implementation for a `GetProductQuery`. */
src/domain/products/queries/get_product.rs:20
↓ 1 callersFunctionexecute
Default implementation for a `GetOrderQuery`. */
src/domain/orders/queries/get_order.rs:20
↓ 1 callersFunctionexecute
Default implementation for a `GetOrderSummariesForCustomerQuery`. */
src/domain/orders/queries/get_order_summaries_for_customer.rs:27
↓ 1 callersFunctionexecute
Default implementation for a `GetOrderWithProductsQuery`. */
src/domain/orders/queries/get_order_with_products.rs:39
↓ 1 callersFunctionexecute
Default implementation for a `GetLineItemWithProductQuery`. */
src/domain/orders/queries/get_line_item_with_product.rs:36
↓ 1 callersMethodfilter
(&self, predicate: F)
src/domain/products/model/store.rs:69
↓ 1 callersMethodfilter
(&self, predicate: F)
src/domain/orders/model/store.rs:161
↓ 1 callersFunctionfinish
Flush the global logger. */
src/logger.rs:22
↓ 1 callersMethodget_customer_query
Get a customer. */
src/domain/customers/queries/get_customer.rs:27
↓ 1 callersMethodget_customer_with_orders_query
Get a customer along with all of their orders. */
src/domain/customers/queries/get_customer_with_orders.rs:58
↓ 1 callersFunctionget_len
(data: &[i32])
src/domain/infra/func.rs:111
↓ 1 callersMethodget_line_item_with_product_query
Get a line item with its associated product. */
src/domain/orders/queries/get_line_item_with_product.rs:76
↓ 1 callersMethodget_order_summaries_for_customer_query
Get a summary for all orders associated with a customer. */
src/domain/orders/queries/get_order_summaries_for_customer.rs:39
↓ 1 callersMethodget_order_with_products_query
Get an order along with product data for each of its line items. */
src/domain/orders/queries/get_order_with_products.rs:80
↓ 1 callersMethodget_product_summaries_query
Get some summary info for a set of products by id. */
src/domain/products/queries/get_product_summaries.rs:46
↓ 1 callersMethodinternal_get
(&self, id: Id)
src/store/value.rs:121
↓ 1 callersMethodinternal_set
( &self, transaction: &Transaction, id: Id, old_version: Option<impl Into<Vers
src/store/value.rs:196
↓ 1 callersMethodinto_data
(self)
src/domain/products/model/mod.rs:85
↓ 1 callersMethodinto_inner
(self)
src/api/infra/error.rs:45
↓ 1 callersMethodinto_line_item_for_product
(self, product_id: ProductId)
src/domain/orders/model/mod.rs:148
↓ 1 callersMethodis_cancelled
Whether or not a given transaction was cancelled. */
src/store/transaction.rs:181
↓ 1 callersMethodline_item_id
(&self)
src/domain/orders/model/mod.rs:238
↓ 1 callersMethodorder_id
(&self)
src/domain/orders/model/mod.rs:234
↓ 1 callersMethodorder_store_filter
(&self)
src/domain/orders/resolver.rs:40
↓ 1 callersMethodproduct_id
(&self)
src/domain/products/model/mod.rs:124
↓ 1 callersMethodproduct_store_filter
(&self)
src/domain/products/resolver.rs:40
next →1–100 of 230, ranked by callers