Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LukeMathWalker/zero-to-production
/ functions
Functions
150 in github.com/LukeMathWalker/zero-to-production
⨍
Functions
150
◇
Types & classes
36
↓ 25 callers
Function
spawn_app
()
tests/api/helpers.rs:182
↓ 19 callers
Function
assert_is_redirect_to
(response: &reqwest::Response, location: &str)
tests/api/helpers.rs:305
↓ 10 callers
Method
post_subscriptions
(&self, body: String)
tests/api/helpers.rs:56
↓ 8 callers
Function
content
Generate a random email content
src/email_client.rs:102
↓ 8 callers
Function
see_other
(location: &str)
src/utils.rs:21
↓ 7 callers
Method
post_login
(&self, body: &Body)
tests/api/helpers.rs:66
↓ 7 callers
Method
post_publish_newsletter
(&self, body: &Body)
tests/api/helpers.rs:145
↓ 6 callers
Method
as_str
(&self)
src/configuration.rs:120
↓ 6 callers
Method
send_email
( &self, recipient: &SubscriberEmail, subject: &str, html_content: &str,
src/email_client.rs:28
↓ 5 callers
Method
build
(configuration: Settings)
src/startup.rs:29
↓ 5 callers
Function
email
Generate a random subscriber email
src/email_client.rs:107
↓ 4 callers
Method
dispatch_all_pending_emails
(&self)
tests/api/helpers.rs:44
↓ 4 callers
Function
email_client
Get a test instance of `EmailClient`.
src/email_client.rs:112
↓ 4 callers
Function
error_chain_fmt
( e: &impl std::error::Error, f: &mut std::fmt::Formatter<'_>, )
src/routes/subscriptions.rs:196
↓ 4 callers
Method
get_confirmation_links
Extract the confirmation links embedded in the request to the email API.
tests/api/helpers.rs:158
↓ 4 callers
Method
get_login_html
(&self)
tests/api/helpers.rs:78
↓ 4 callers
Method
get_publish_newsletter_html
(&self)
tests/api/helpers.rs:141
↓ 4 callers
Method
get_user_id
(&self)
src/session_state.rs:21
↓ 4 callers
Method
login
(&self, app: &TestApp)
tests/api/helpers.rs:273
↓ 4 callers
Method
post_change_password
(&self, body: &Body)
tests/api/helpers.rs:121
↓ 4 callers
Function
subject
Generate a random email subject
src/email_client.rs:97
↓ 3 callers
Method
client
(self)
src/configuration.rs:63
↓ 3 callers
Method
connect_options
(&self)
src/configuration.rs:37
↓ 3 callers
Function
create_confirmed_subscriber
(app: &TestApp)
tests/api/newsletter.rs:42
↓ 3 callers
Method
get_admin_dashboard
(&self)
tests/api/helpers.rs:89
↓ 3 callers
Method
get_change_password_html
(&self)
tests/api/helpers.rs:109
↓ 3 callers
Function
get_connection_pool
(configuration: &DatabaseSettings)
src/startup.rs:61
↓ 3 callers
Function
get_subscriber
Compose multiple layers into a `tracing`'s subscriber. # Implementation Notes We are using `impl Subscriber` as return type to avoid having to spell
src/telemetry.rs:15
↓ 3 callers
Function
init_subscriber
Register a subscriber as global default to process span data. It should only be called once!
src/telemetry.rs:35
↓ 3 callers
Method
port
(&self)
src/startup.rs:52
↓ 2 callers
Method
as_ref
(&self)
src/idempotency/key.rs:29
↓ 2 callers
Function
create_unconfirmed_subscriber
(app: &TestApp)
tests/api/newsletter.rs:9
↓ 2 callers
Method
get_change_password
(&self)
tests/api/helpers.rs:101
↓ 2 callers
Function
get_configuration
()
src/configuration.rs:83
↓ 2 callers
Method
get_publish_newsletter
(&self)
tests/api/helpers.rs:133
↓ 2 callers
Function
get_username
(user_id: Uuid, pool: &PgPool)
src/routes/admin/dashboard.rs:46
↓ 2 callers
Function
login_redirect
(e: LoginError)
src/routes/login/post.rs:55
↓ 2 callers
Method
post_logout
(&self)
tests/api/helpers.rs:113
↓ 2 callers
Method
run_until_stopped
(self)
src/startup.rs:56
↓ 2 callers
Method
source
(&self)
src/routes/subscriptions.rs:176
↓ 2 callers
Function
spawn_blocking_with_tracing
(f: F)
src/telemetry.rs:40
↓ 2 callers
Function
success_message
()
src/routes/admin/newsletter/post.rs:19
↓ 2 callers
Method
timeout
(&self)
src/configuration.rs:78
↓ 2 callers
Function
try_execute_task
( pool: &PgPool, email_client: &EmailClient, )
src/issue_delivery_worker.rs:41
↓ 2 callers
Function
validate_credentials
( credentials: Credentials, pool: &PgPool, )
src/authentication/password.rs:42
↓ 1 callers
Function
compute_password_hash
(password: Secret<String>)
src/authentication/password.rs:116
↓ 1 callers
Function
configure_database
(config: &DatabaseSettings)
tests/api/helpers.rs:231
↓ 1 callers
Function
confirm_subscriber
(pool: &PgPool, subscriber_id: Uuid)
src/routes/subscriptions_confirm.rs:52
↓ 1 callers
Function
delete_task
( mut transaction: PgTransaction, issue_id: Uuid, email: &str, )
src/issue_delivery_worker.rs:116
↓ 1 callers
Function
dequeue_task
( pool: &PgPool, )
src/issue_delivery_worker.rs:89
↓ 1 callers
Function
e500
Return an opaque 500 while preserving the error root's cause for logging.
src/utils.rs:5
↓ 1 callers
Function
enqueue_delivery_tasks
( transaction: &mut Transaction<'_, Postgres>, newsletter_issue_id: Uuid, )
src/routes/admin/newsletter/post.rs:99
↓ 1 callers
Function
generate_subscription_token
()
src/routes/subscriptions.rs:94
↓ 1 callers
Method
get_admin_dashboard_html
(&self)
tests/api/helpers.rs:97
↓ 1 callers
Function
get_issue
(pool: &PgPool, issue_id: Uuid)
src/issue_delivery_worker.rs:144
↓ 1 callers
Function
get_saved_response
( pool: &PgPool, idempotency_key: &IdempotencyKey, user_id: Uuid, )
src/idempotency/persistence.rs:16
↓ 1 callers
Function
get_stored_credentials
( username: &str, pool: &PgPool, )
src/authentication/password.rs:22
↓ 1 callers
Function
get_subscriber_id_from_token
( pool: &PgPool, subscription_token: &str, )
src/routes/subscriptions_confirm.rs:63
↓ 1 callers
Function
insert_newsletter_issue
( transaction: &mut Transaction<'_, Postgres>, title: &str, text_content: &str, html_content:
src/routes/admin/newsletter/post.rs:71
↓ 1 callers
Function
insert_subscriber
( transaction: &mut Transaction<'_, Postgres>, new_subscriber: &NewSubscriber, )
src/routes/subscriptions.rs:133
↓ 1 callers
Method
insert_user_id
(&self, user_id: Uuid)
src/session_state.rs:17
↓ 1 callers
Method
log_out
(self)
src/session_state.rs:25
↓ 1 callers
Method
renew
(&self)
src/session_state.rs:13
↓ 1 callers
Function
run
( listener: TcpListener, db_pool: PgPool, email_client: EmailClient, base_url: String, hma
src/startup.rs:67
↓ 1 callers
Function
run_worker_until_stopped
(configuration: Settings)
src/issue_delivery_worker.rs:8
↓ 1 callers
Function
save_response
( mut transaction: Transaction<'static, Postgres>, idempotency_key: &IdempotencyKey, user_id: Uuid
src/idempotency/persistence.rs:49
↓ 1 callers
Function
send_confirmation_email
( email_client: &EmailClient, new_subscriber: NewSubscriber, base_url: &str, subscription_toke
src/routes/subscriptions.rs:106
↓ 1 callers
Method
sender
(&self)
src/configuration.rs:74
↓ 1 callers
Method
store
(&self, pool: &PgPool)
tests/api/helpers.rs:281
↓ 1 callers
Function
store_token
( transaction: &mut Transaction<'_, Postgres>, subscriber_id: Uuid, subscription_token: &str, )
src/routes/subscriptions.rs:156
↓ 1 callers
Function
try_processing
( pool: &PgPool, idempotency_key: &IdempotencyKey, user_id: Uuid, )
src/idempotency/persistence.rs:99
↓ 1 callers
Function
verify_password_hash
( expected_password_hash: Secret<String>, password_candidate: Secret<String>, )
src/authentication/password.rs:76
↓ 1 callers
Function
worker_loop
(pool: PgPool, email_client: EmailClient)
src/issue_delivery_worker.rs:14
Function
a_256_grapheme_long_name_is_valid
()
src/domain/subscriber_name.rs:50
Function
a_name_longer_than_256_graphemes_is_rejected
()
src/domain/subscriber_name.rs:56
Function
a_valid_name_is_parsed_successfully
()
src/domain/subscriber_name.rs:82
Function
admin_dashboard
( session: TypedSession, pool: web::Data<PgPool>, )
src/routes/admin/dashboard.rs:9
Function
an_error_flash_message_is_set_on_failure
()
tests/api/login.rs:4
Method
arbitrary
(g: &mut quickcheck::Gen)
src/domain/subscriber_email.rs:59
Method
as_ref
(&self)
src/domain/subscriber_email.rs:17
Method
as_ref
(&self)
src/domain/subscriber_name.rs:39
Function
change_password
( form: web::Form<FormData>, pool: web::Data<PgPool>, user_id: web::ReqData<UserId>, )
src/routes/admin/password/post.rs:16
Function
change_password
( user_id: uuid::Uuid, password: Secret<String>, pool: &PgPool, )
src/authentication/password.rs:93
Function
change_password_form
( session: TypedSession, flash_messages: IncomingFlashMessages, )
src/routes/admin/password/get.rs:8
Function
changing_password_works
()
tests/api/change_password.rs:99
Function
clicking_on_the_confirmation_link_confirms_a_subscriber
()
tests/api/subscriptions_confirm.rs:43
Function
concurrent_form_submission_is_handled_gracefully
()
tests/api/newsletter.rs:197
Function
confirm
( parameters: web::Query<Parameters>, pool: web::Data<PgPool>, )
src/routes/subscriptions_confirm.rs:37
Function
confirmations_without_token_are_rejected_with_a_400
()
tests/api/subscriptions_confirm.rs:6
Function
current_password_must_be_valid
()
tests/api/change_password.rs:68
Method
deref
(&self)
src/authentication/middleware.rs:23
Function
e400
Return a 400 with the user-representation of the validation error as body. The error root cause is preserved for logging purposes.
src/utils.rs:14
Function
email_missing_at_symbol_is_rejected
()
src/domain/subscriber_email.rs:44
Function
email_missing_subject_is_rejected
()
src/domain/subscriber_email.rs:50
Function
empty_string_is_rejected
()
src/domain/subscriber_email.rs:38
Function
empty_string_is_rejected
()
src/domain/subscriber_name.rs:68
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/routes/subscriptions.rs:39
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/routes/subscriptions_confirm.rs:22
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/routes/login/post.rs:72
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/authentication/middleware.rs:15
next →
1–100 of 150, ranked by callers