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
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/domain/subscriber_email.rs:23
Method
from
(k: IdempotencyKey)
src/idempotency/key.rs:23
Method
from_request
(req: &HttpRequest, _payload: &mut Payload)
src/session_state.rs:34
Method
generate
()
tests/api/helpers.rs:265
Function
health_check
()
src/routes/health_check.rs:3
Function
health_check_works
()
tests/api/health_check.rs:4
Function
home
()
src/routes/home/mod.rs:3
Function
log_out
(session: TypedSession)
src/routes/admin/logout.rs:6
Function
login
We are now injecting `PgPool` to retrieve stored credentials from the database
src/routes/login/post.rs:24
Function
login_form
(flash_messages: IncomingFlashMessages)
src/routes/login/get.rs:5
Function
logout_clears_session_state
()
tests/api/admin_dashboard.rs:16
Function
main
()
src/main.rs:9
Method
matches
(&self, request: &Request)
src/email_client.rs:82
Function
names_containing_an_invalid_character_are_rejected
()
src/domain/subscriber_name.rs:74
Method
new
( base_url: String, sender: SubscriberEmail, authorization_token: Secret<String>,
src/email_client.rs:13
Function
new_password_fields_must_match
()
tests/api/change_password.rs:36
Function
newsletter_creation_is_idempotent
()
tests/api/newsletter.rs:149
Function
newsletters_are_delivered_to_confirmed_subscribers
()
tests/api/newsletter.rs:85
Function
newsletters_are_not_delivered_to_unconfirmed_subscribers
()
tests/api/newsletter.rs:52
Method
parse
(s: String)
src/domain/subscriber_email.rs:7
Method
parse
Returns an instance of `SubscriberName` if the input satisfies all our validation constraints on subscriber names. It panics otherwise.
src/domain/subscriber_name.rs:10
Function
publish_newsletter
( form: web::Form<FormData>, pool: web::Data<PgPool>, user_id: web::ReqData<UserId>, )
src/routes/admin/newsletter/post.rs:31
Function
publish_newsletter_form
( flash_messages: IncomingFlashMessages, )
src/routes/admin/newsletter/get.rs:6
Function
reject_anonymous_users
( mut req: ServiceRequest, next: Next<impl MessageBody>, )
src/authentication/middleware.rs:28
Function
report_exit
(task_name: &str, outcome: Result<Result<(), impl Debug + Display>, JoinError>)
src/main.rs:26
Function
send_email_fails_if_the_server_returns_500
()
src/email_client.rs:167
Function
send_email_sends_the_expected_request
()
src/email_client.rs:122
Function
send_email_succeeds_if_the_server_returns_200
()
src/email_client.rs:146
Function
send_email_times_out_if_the_server_takes_too_long
()
src/email_client.rs:189
Method
status_code
(&self)
src/routes/subscriptions.rs:45
Method
status_code
(&self)
src/routes/subscriptions_confirm.rs:28
Function
subscribe
( form: web::Form<FormData>, pool: web::Data<PgPool>, email_client: web::Data<EmailClient>, ba
src/routes/subscriptions.rs:61
Function
subscribe_fails_if_there_is_a_fatal_database_error
()
tests/api/subscriptions.rs:45
Function
subscribe_persists_the_new_subscriber
()
tests/api/subscriptions.rs:25
Function
subscribe_returns_a_200_for_valid_form_data
()
tests/api/subscriptions.rs:6
Function
subscribe_returns_a_400_when_data_is_missing
()
tests/api/subscriptions.rs:106
Function
subscribe_returns_a_400_when_fields_are_present_but_invalid
()
tests/api/subscriptions.rs:131
Function
subscribe_sends_a_confirmation_email_for_valid_data
()
tests/api/subscriptions.rs:63
Function
subscribe_sends_a_confirmation_email_with_a_link
()
tests/api/subscriptions.rs:83
Function
the_link_returned_by_subscribe_returns_a_200_if_called
()
tests/api/subscriptions_confirm.rs:20
Method
try_from
(s: String)
src/configuration.rs:131
Method
try_from
(value: FormData)
src/routes/subscriptions.rs:23
Method
try_from
(s: String)
src/idempotency/key.rs:7
Function
valid_emails_are_parsed_successfully
(valid_email: ValidEmailFixture)
src/domain/subscriber_email.rs:68
Function
whitespace_only_names_are_rejected
()
src/domain/subscriber_name.rs:62
Function
you_must_be_logged_in_to_access_the_admin_dashboard
()
tests/api/admin_dashboard.rs:4
Function
you_must_be_logged_in_to_change_your_password
()
tests/api/change_password.rs:17
Function
you_must_be_logged_in_to_publish_a_newsletter
()
tests/api/newsletter.rs:131
Function
you_must_be_logged_in_to_see_the_change_password_form
()
tests/api/change_password.rs:5
Function
you_must_be_logged_in_to_see_the_newsletter_form
()
tests/api/newsletter.rs:119
← previous
101–150 of 150, ranked by callers