Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KodrAus/rust-web-app
/ functions
Functions
230 in github.com/KodrAus/rust-web-app
⨍
Functions
230
◇
Types & classes
86
↓ 20 callers
Method
set
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 callers
Method
get
(&self)
src/domain/infra/transaction/active.rs:33
↓ 17 callers
Method
begin
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 callers
Method
clone
(&self)
src/domain/infra/id.rs:67
↓ 15 callers
Method
execute
(self, input: TArgs)
src/domain/infra/func.rs:22
↓ 14 callers
Method
get
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 callers
Method
id
(mut self, id: OrderId)
src/domain/orders/model/test_data.rs:33
↓ 11 callers
Method
into_data
(self)
src/domain/orders/model/mod.rs:112
↓ 10 callers
Method
build
(mut self)
src/domain/orders/model/test_data.rs:46
↓ 9 callers
Function
msg
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 callers
Method
transaction
(self, f: impl FnOnce(Resolver) -> O)
src/api/infra/request.rs:28
↓ 8 callers
Method
query
( &self, query: TQuery, )
src/domain/infra/func.rs:64
↓ 8 callers
Method
set_order
(&self, transaction: &Transaction, order: Order)
src/domain/orders/model/store.rs:128
↓ 7 callers
Method
add_product
( &mut self, id: impl IdProvider<LineItemData>, product: &Product, quantity: i
src/domain/orders/model/mod.rs:187
↓ 7 callers
Method
commit
Commit a transaction, making its changes atomically observable. */
src/store/transaction.rs:143
↓ 7 callers
Method
id
Get the id associated with this transaction. */
src/store/transaction.rs:70
↓ 7 callers
Function
in_memory_store
(transaction_store: TransactionStore)
src/domain/orders/model/store.rs:175
↓ 7 callers
Method
resolve
(&self, register: &Register<T>)
src/domain/infra/resolver.rs:66
↓ 6 callers
Method
active_transaction
(&self)
src/domain/infra/transaction/resolver.rs:65
↓ 6 callers
Method
get_order
(&self, id: OrderId)
src/domain/orders/model/store.rs:109
↓ 6 callers
Method
next
(&self)
src/domain/infra/id.rs:164
↓ 5 callers
Method
by_ref
(&self)
src/domain/infra/resolver.rs:57
↓ 5 callers
Method
command
( &self, command: TCommand, )
src/domain/infra/func.rs:48
↓ 5 callers
Function
default_product
()
src/domain/products/model/test_data.rs:14
↓ 5 callers
Method
get_line_item
( &self, id: OrderId, line_item_id: LineItemId, )
src/domain/orders/model/store.rs:55
↓ 5 callers
Function
init
Initialize the global logger. */
src/logger.rs:8
↓ 5 callers
Method
order_store
(&self)
src/domain/orders/resolver.rs:36
↓ 5 callers
Method
set_quantity
(&mut self, quantity: TQuantity)
src/domain/orders/model/mod.rs:120
↓ 4 callers
Function
bad_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 callers
Method
get_customer
(&self, id: CustomerId)
src/domain/customers/model/store.rs:21
↓ 4 callers
Method
get_product
(&self, id: ProductId)
src/domain/products/model/store.rs:41
↓ 4 callers
Function
in_memory_store
(transaction_store: TransactionStore)
src/domain/customers/model/store.rs:47
↓ 4 callers
Function
in_memory_store
( transaction_store: TransactionStore, )
src/domain/products/model/store.rs:79
↓ 4 callers
Function
msg
(err: impl fmt::Display)
src/api/infra/error.rs:54
↓ 4 callers
Method
set_product
(&self, transaction: &Transaction, product: Product)
src/domain/products/model/store.rs:51
↓ 4 callers
Method
status
(&self)
src/api/infra/error.rs:37
↓ 4 callers
Method
transaction_store
(&self)
src/domain/infra/transaction/resolver.rs:61
↓ 3 callers
Method
cancel
Cancel a transaction, ensuring its changes can never be observed. */
src/store/transaction.rs:158
↓ 3 callers
Method
customer_store
(&self)
src/domain/customers/resolver.rs:35
↓ 3 callers
Function
default_customer
()
src/domain/customers/model/test_data.rs:3
↓ 3 callers
Function
default_order
()
src/domain/orders/model/test_data.rs:7
↓ 3 callers
Function
emit
Create an error from a diagnostic event. The event will be emitted. */
src/domain/error.rs:56
↓ 3 callers
Function
execute
( command: AddOrUpdateProduct, transaction: ActiveTransaction, store: impl OrderStore, id: imp
src/domain/orders/commands/add_or_update_product.rs:23
↓ 3 callers
Method
get_all
( &self, mut filter: impl FnMut(&T) -> bool, )
src/store/value.rs:132
↓ 3 callers
Method
get_product_query
Get a product. */
src/domain/products/queries/get_product.rs:28
↓ 3 callers
Method
product_store
(&self)
src/domain/products/resolver.rs:36
↓ 3 callers
Method
set_customer
(&self, transaction: &Transaction, customer: Customer)
src/domain/customers/model/store.rs:31
↓ 3 callers
Method
set_line_item
(&self, transaction: &Transaction, order: OrderLineItem)
src/domain/orders/model/store.rs:82
↓ 3 callers
Method
to_data
(&self)
src/domain/orders/model/mod.rs:116
↓ 2 callers
Method
build
(self)
src/domain/customers/model/test_data.rs:29
↓ 2 callers
Method
build
(self)
src/domain/products/model/test_data.rs:40
↓ 2 callers
Method
contains_product
(&self, product_id: ProductId)
src/domain/orders/model/mod.rs:181
↓ 2 callers
Function
execute
( command: CreateCustomer, transaction: ActiveTransaction, store: impl CustomerStore, )
src/domain/customers/commands/create_customer.rs:20
↓ 2 callers
Function
execute
Default implementation for a `CreateProductCommand`. */
src/domain/products/commands/create_product.rs:23
↓ 2 callers
Function
execute
( command: CreateOrder, transaction: ActiveTransaction, store: impl OrderStore, customer_query
src/domain/orders/commands/create_order.rs:22
↓ 2 callers
Method
id
(mut self, id: CustomerId)
src/domain/customers/model/test_data.rs:24
↓ 2 callers
Method
id
(mut self, id: ProductId)
src/domain/products/model/test_data.rs:35
↓ 2 callers
Method
into_data
(self)
src/domain/customers/model/mod.rs:39
↓ 2 callers
Method
into_raw
(self)
src/store/value.rs:42
↓ 2 callers
Method
is_committed
Whether or not a given transaction was committed. */
src/store/transaction.rs:171
↓ 1 callers
Method
add_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 callers
Method
add_product
(mut self, product: Product, builder: F)
src/domain/orders/model/test_data.rs:38
↓ 1 callers
Function
add_value
(data: &mut Vec<i32>)
src/domain/infra/func.rs:105
↓ 1 callers
Method
commit
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 callers
Method
create_customer_command
Create a customer. */
src/domain/customers/commands/create_customer.rs:42
↓ 1 callers
Method
create_order_command
Create an order. */
src/domain/orders/commands/create_order.rs:52
↓ 1 callers
Method
create_product_command
Create a product. */
src/domain/products/commands/create_product.rs:45
↓ 1 callers
Method
customer_id
(&self)
src/domain/customers/model/mod.rs:62
↓ 1 callers
Function
default_price
()
src/domain/products/model/test_data.rs:10
↓ 1 callers
Function
default_title
()
src/domain/products/model/test_data.rs:6
↓ 1 callers
Function
execute
( query: GetCustomerWithOrders, store: impl CustomerStore, orders_query: impl Query<GetOrderSummar
src/domain/customers/queries/get_customer_with_orders.rs:33
↓ 1 callers
Function
execute
(query: GetCustomer, store: impl CustomerStore)
src/domain/customers/queries/get_customer.rs:19
↓ 1 callers
Function
execute
Default implementation for a `SetProductTitleCommand`. */
src/domain/products/commands/set_product_title.rs:22
↓ 1 callers
Function
execute
Default implementation for a `GetProductSummariesQuery`. */
src/domain/products/queries/get_product_summaries.rs:28
↓ 1 callers
Function
execute
Default implementation for a `GetProductQuery`. */
src/domain/products/queries/get_product.rs:20
↓ 1 callers
Function
execute
Default implementation for a `GetOrderQuery`. */
src/domain/orders/queries/get_order.rs:20
↓ 1 callers
Function
execute
Default implementation for a `GetOrderSummariesForCustomerQuery`. */
src/domain/orders/queries/get_order_summaries_for_customer.rs:27
↓ 1 callers
Function
execute
Default implementation for a `GetOrderWithProductsQuery`. */
src/domain/orders/queries/get_order_with_products.rs:39
↓ 1 callers
Function
execute
Default implementation for a `GetLineItemWithProductQuery`. */
src/domain/orders/queries/get_line_item_with_product.rs:36
↓ 1 callers
Method
filter
(&self, predicate: F)
src/domain/products/model/store.rs:69
↓ 1 callers
Method
filter
(&self, predicate: F)
src/domain/orders/model/store.rs:161
↓ 1 callers
Function
finish
Flush the global logger. */
src/logger.rs:22
↓ 1 callers
Method
get_customer_query
Get a customer. */
src/domain/customers/queries/get_customer.rs:27
↓ 1 callers
Method
get_customer_with_orders_query
Get a customer along with all of their orders. */
src/domain/customers/queries/get_customer_with_orders.rs:58
↓ 1 callers
Function
get_len
(data: &[i32])
src/domain/infra/func.rs:111
↓ 1 callers
Method
get_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 callers
Method
get_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 callers
Method
get_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 callers
Method
get_product_summaries_query
Get some summary info for a set of products by id. */
src/domain/products/queries/get_product_summaries.rs:46
↓ 1 callers
Method
internal_get
(&self, id: Id)
src/store/value.rs:121
↓ 1 callers
Method
internal_set
( &self, transaction: &Transaction, id: Id, old_version: Option<impl Into<Vers
src/store/value.rs:196
↓ 1 callers
Method
into_data
(self)
src/domain/products/model/mod.rs:85
↓ 1 callers
Method
into_inner
(self)
src/api/infra/error.rs:45
↓ 1 callers
Method
into_line_item_for_product
(self, product_id: ProductId)
src/domain/orders/model/mod.rs:148
↓ 1 callers
Method
is_cancelled
Whether or not a given transaction was cancelled. */
src/store/transaction.rs:181
↓ 1 callers
Method
line_item_id
(&self)
src/domain/orders/model/mod.rs:238
↓ 1 callers
Method
order_id
(&self)
src/domain/orders/model/mod.rs:234
↓ 1 callers
Method
order_store_filter
(&self)
src/domain/orders/resolver.rs:40
↓ 1 callers
Method
product_id
(&self)
src/domain/products/model/mod.rs:124
↓ 1 callers
Method
product_store_filter
(&self)
src/domain/products/resolver.rs:40
next →
1–100 of 230, ranked by callers