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
↓ 1 callers
Method
set_product_title_command
Set an existing product's title. */
src/domain/products/commands/set_product_title.rs:44
↓ 1 callers
Method
set_title
(&mut self, title: impl TryInto<Title, Error = Error>)
src/domain/products/model/mod.rs:109
↓ 1 callers
Method
split
Split an error into its kind and value. */
src/domain/error.rs:80
↓ 1 callers
Method
trace
(self, f: impl Future<Output = Result<T, Error>>)
src/api/infra/span.rs:33
↓ 1 callers
Method
with_active_transaction
( &self, active_transaction: Register<ActiveTransaction>, )
src/domain/infra/transaction/resolver.rs:69
Function
add_customer_twice_fails_concurrency_check
()
src/domain/customers/model/store.rs:74
Function
add_item_if_not_in_order
()
src/domain/orders/commands/add_or_update_product.rs:91
Function
add_item_to_order
()
src/domain/orders/model/mod.rs:257
Function
add_or_update_product
( id: OrderId, product_id: ProductId, data: Json<ProductQuantity>, app: AppRequest<'_>, )
src/api/orders.rs:95
Function
add_order_twice_fails_concurrency_check
()
src/domain/orders/model/store.rs:231
Function
add_product_twice_fails_concurrency_check
()
src/domain/products/model/store.rs:107
Method
begin
(store: TransactionStore)
src/domain/infra/transaction/active.rs:24
Method
cancel
Cancel the transaction, reverting its changes. There must be no other callers holding on to this transaction when it's cancelled. If there ar
src/domain/infra/transaction/active.rs:62
Function
cancelled_transaction_is_not_committed
()
src/store/transaction.rs:212
Method
clone
(&self)
src/domain/infra/version.rs:63
Method
cmp
(&self, other: &Self)
src/domain/infra/id.rs:89
Method
cmp
(&self, other: &Self)
src/domain/infra/version.rs:91
Function
committed_transaction_is_committed
()
src/store/transaction.rs:236
Function
create
( data: Json<Create>, app: AppRequest<'_>, )
src/api/orders.rs:60
Function
create
(app: AppRequest<'_>)
src/api/customers.rs:32
Function
create
( data: Json<Create>, app: AppRequest<'_>, )
src/api/products.rs:53
Method
default
()
src/store/transaction.rs:88
Method
default
()
src/domain/infra/id.rs:154
Method
default
()
src/domain/infra/version.rs:71
Method
default
()
src/domain/infra/resolver.rs:22
Method
default
()
src/domain/infra/transaction/resolver.rs:16
Method
default
()
src/domain/customers/resolver.rs:25
Method
default
()
src/domain/customers/model/test_data.rs:12
Method
default
()
src/domain/products/resolver.rs:26
Method
default
()
src/domain/products/model/test_data.rs:23
Method
default
()
src/domain/orders/resolver.rs:26
Method
default
()
src/domain/orders/model/test_data.rs:20
Method
deserialize
(deserializer: D)
src/domain/infra/id.rs:125
Method
deserialize
(deserializer: D)
src/domain/infra/version.rs:112
Method
drop
(&mut self)
src/store/transaction.rs:59
Method
eq
(&self, other: &Self)
src/domain/infra/id.rs:75
Method
eq
(&self, other: &Self)
src/domain/infra/version.rs:77
Function
err_if_already_exists
()
src/domain/customers/commands/create_customer.rs:59
Function
err_if_already_exists
()
src/domain/products/commands/create_product.rs:62
Function
err_if_already_exists
()
src/domain/orders/commands/create_order.rs:74
Function
err_multi_transaction_value_store_set
()
src/store/value.rs:583
Function
err_transaction_value_store_set_version_mismatch
()
src/store/value.rs:550
Function
existing_id_in_fresh_store_is_committed
()
src/store/value.rs:300
Method
factory
Create a register that returns a new instance of a value each time. */
src/domain/infra/resolver.rs:100
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/store/value.rs:28
Method
fmt
(&self, f: &mut fmt::Formatter)
src/domain/error.rs:23
Method
fmt
(&self, f: &mut Formatter)
src/domain/infra/id.rs:55
Method
fmt
(&self, f: &mut Formatter)
src/domain/infra/version.rs:51
Method
from
(err: E)
src/domain/error.rs:89
Method
from
(id: Id<T>)
src/domain/infra/id.rs:43
Method
from
(id: Version<T>)
src/domain/infra/version.rs:39
Method
from
(err: domain::Error)
src/api/infra/error.rs:75
Method
from_data
(data: CustomerData)
src/domain/customers/model/mod.rs:31
Method
from_data
(data: ProductData)
src/domain/products/model/mod.rs:81
Method
from_data
(order: OrderData, line_item: LineItemData)
src/domain/orders/model/mod.rs:108
Method
from_param
(param: &'r str)
src/api/infra/id.rs:12
Method
from_raw
(id: Uuid)
src/store/value.rs:38
Method
from_request
(req: &'r Request<'_>)
src/api/infra/span.rs:110
Method
from_request
(req: &'r Request<'_>)
src/api/infra/request.rs:46
Function
get
(id: OrderId, app: AppRequest<'_>)
src/api/orders.rs:20
Function
get
(id: CustomerId, app: AppRequest<'_>)
src/api/customers.rs:18
Function
get
(id: ProductId, app: AppRequest<'_>)
src/api/products.rs:25
Method
get
(&self)
src/domain/infra/id.rs:145
Function
get_line_item
( id: OrderId, line_item_id: LineItemId, app: AppRequest<'_>, )
src/api/orders.rs:34
Method
get_order_query
Get an order. */
src/domain/orders/queries/get_order.rs:26
Method
get_sync
( id: Id, transactions: &TransactionStore, data: &'a HashMap<Id, TransactionalValue<T>
src/store/value.rs:151
Method
hash
(&self, state: &mut H)
src/domain/infra/id.rs:95
Method
hash
(&self, state: &mut H)
src/domain/infra/version.rs:97
Method
info
(&self)
src/api/infra/span.rs:73
Function
init
Create a `Rocket` that will host the app. The rocket can either be launched or passed to a local client for testing. */
src/api/mod.rs:20
Function
initial_transaction_is_not_committed
()
src/store/transaction.rs:203
Function
internal_error
(_: &Request)
src/api/infra/error.rs:105
Function
leaked_transaction_is_not_committed
()
src/store/transaction.rs:224
Function
main
()
src/main.rs:11
Method
new
()
src/store/value.rs:34
Method
new
Create a new store. The store is initially empty, so it will consider any transaction ids it encounters committed. */
src/store/transaction.rs:100
Method
new
()
src/domain/infra/id.rs:102
Method
new
(cents: u64)
src/domain/infra/currency.rs:30
Method
new
()
src/domain/infra/version.rs:122
Method
new
()
src/domain/infra/resolver.rs:28
Method
new
(id: impl IdProvider<CustomerData>)
src/domain/customers/model/mod.rs:43
Method
new
()
src/domain/customers/model/test_data.rs:20
Method
new
( id: impl IdProvider<ProductData>, title: impl TryInto<Title, Error = Error>, price:
src/domain/products/model/mod.rs:93
Method
new
()
src/domain/products/model/test_data.rs:31
Method
new
(id: impl IdProvider<OrderData>, customer: &Customer)
src/domain/orders/model/mod.rs:165
Method
new
()
src/domain/orders/model/test_data.rs:29
Method
next
(&mut self)
src/domain/infra/version.rs:128
Method
none
An "empty" transaction that makes all changes immediately observable. */
src/store/transaction.rs:50
Method
none
()
src/domain/infra/transaction/active.rs:70
Function
not_found
(_: &Request)
src/api/infra/error.rs:115
Method
on_request
(&self, req: &mut Request<'_>, _: &mut Data<'_>)
src/api/infra/span.rs:80
Method
on_response
(&self, req: &'r Request<'_>, res: &mut Response<'r>)
src/api/infra/span.rs:84
Method
once
Create a register that returns the same instance of a value. */
src/domain/infra/resolver.rs:87
Method
partial_cmp
(&self, other: &Self)
src/domain/infra/id.rs:83
Method
partial_cmp
(&self, other: &Self)
src/domain/infra/version.rs:85
Function
product_must_not_be_in_order_when_adding
()
src/domain/orders/model/mod.rs:289
Method
quantity
(mut self, quantity: u32)
src/domain/orders/model/test_data.rs:73
Function
quantity_must_be_greater_than_0
()
src/domain/orders/model/mod.rs:274
Method
respond_to
(self, _: &Request)
src/api/infra/error.rs:59
Method
serialize
(&self, serializer: S)
src/domain/infra/id.rs:116
← previous
next →
101–200 of 230, ranked by callers