Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Wulf/create-rust-app
/ functions
Functions
384 in github.com/Wulf/create-rust-app
⨍
Functions
384
◇
Types & classes
143
Function
oidc_login_redirect
( db: Data<Database>, app_config: Data<AppConfig>, auth_config: Data<AuthConfig>, provider: Pa
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:177
Method
permissions
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/hooks/useAuth.tsx:25
Method
ping
(&self, ctx: &Context<'_>)
crates/create-rust-app_cli/template-plugin-graphql/backend/graphql/query.rs:8
Function
qsync
(_attr: TokenStream, item: TokenStream)
crates/qsync/qsync-macro/src/lib.rs:6
Function
query
(db: Data<&Database>, body: Json<MySqlQuery>)
crates/create-rust-app/src/dev/endpoints/service_poem.rs:14
Function
query_db
/db/query # Errors query fails # Panics cannot connect to the database
crates/create-rust-app/src/dev/controller.rs:37
Method
read
Read from [`db`](`Connection`), querying for an entry in the `user_sessions` who's primary key matches [`item_id`](`ID`) # Errors [`diesel::result::E
crates/create-rust-app/src/auth/user_session.rs:75
Method
read
Read from [`db`](`Connection`), querying for an entry in the `users` who's primary key matches [`item_id`](`ID`) # Errors [`diesel::result::Error`](`
crates/create-rust-app/src/auth/user.rs:64
Method
read
Read from [`db`](`Connection`), querying for an entry in the `role_permissions` table that has (`item_role`,`item_permission`) as it's primary keys #
crates/create-rust-app/src/auth/permissions/role_permission.rs:87
Method
read
Read from [`db`](`Connection`), querying for an entry in the `user_roles` table that has (`item_user_id`,`item_role`) as it's primary keys # Errors [
crates/create-rust-app/src/auth/permissions/user_role.rs:87
Method
read
Read from [`db`](`Connection`), querying for an entry in the `user_permissions` table that has (`item_user_id`,`item_permission`) as it's primary keys
crates/create-rust-app/src/auth/permissions/user_permission.rs:93
Method
read
(db: &mut Connection, param_id: i32)
crates/create-rust-app/src/auth/oidc/model.rs:85
Method
read_all
Read from [`db`](`Connection`), return entries of the `user_sessions` table, paginated according to [`pagination`](`PaginationParams`) # Errors [`die
crates/create-rust-app/src/auth/user_session.rs:102
Method
read_all
Read from [`db`](`Connection`), return entries of the `users` table, paginated according to [`pagination`](`PaginationParams`) # Errors [`diesel::res
crates/create-rust-app/src/auth/user.rs:86
Method
read_all
Read from [`db`](`Connection`), querying for every entry in the `role_permissions` table that has `item_role` as one of its primary keys # Errors [`d
crates/create-rust-app/src/auth/permissions/role_permission.rs:104
Method
read_all
Read from [`db`](`Connection`), querying for every entry in the `user_roles` table that has `item_user_id` as one of its primary keys # Errors [`dies
crates/create-rust-app/src/auth/permissions/user_role.rs:100
Method
read_all
Read from [`db`](`Connection`), querying for every entry in the `user_permissions` table that has `item_user_id` as one of its primary keys # Errors
crates/create-rust-app/src/auth/permissions/user_permission.rs:110
Method
read_by_csrf_token
( db: &mut Connection, param_provider: String, param_token: String, )
crates/create-rust-app/src/auth/oidc/model.rs:91
Method
read_by_subject
(db: &mut Connection, param_subject_id: String)
crates/create-rust-app/src/auth/oidc/model.rs:106
Method
reason
(reason: String)
crates/create-rust-app/src/auth/extractors/auth_actixweb.rs:30
Function
recover
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/containers/RecoveryPage.tsx:11
Function
refresh
/refresh refreshes the user session associated with the clients `refresh_token` cookie # Returns [`Result`] - Ok([`AccessToken`], [`RefreshToken`])
crates/create-rust-app/src/auth/controller.rs:411
Function
refresh
safe because we're running blocking actions in a web::block
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:354
Function
refresh
handler for POST requests to the .../refresh endpoint see [`controller::refresh`] # Responses | StatusCode | content | |:------------|---------| | 2
crates/create-rust-app/src/auth/endpoints/service_poem.rs:193
Function
register
/register creates a new User with the information in [`item`](`RegisterInput`) sends an email, using [`mailer`](`Mailer`), to the email address in [
crates/create-rust-app/src/auth/controller.rs:511
Function
register
( db: Data<Database>, Json(item): Json<RegisterInput>, mailer: Data<Mailer>, )
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:399
Function
register
handler for POST requests to the .../register endpoint request must have the `Content-Type: application/json` header, and a Json payload that can be
crates/create-rust-app/src/auth/endpoints/service_poem.rs:230
Function
register
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/containers/RegistrationPage.tsx:12
Function
render_single_page_application
view: the template which renders the app Full example (to render the `views/spa.html` template): ``` app = app.nest("/my-spa", create_rust_app::rende
crates/create-rust-app/src/util/poem_utils.rs:20
Function
render_single_page_application
'route': the route where the SPA should be served from, for example: "/app" 'view': the view which renders the SPA, for example: "spa/index.html"
crates/create-rust-app/src/util/actix_web_utils.rs:18
Function
render_spa_handler
( uri: &Uri, spa_info: Data<&SinglePageApplication>, )
crates/create-rust-app/src/util/poem_utils.rs:31
Function
render_spa_handler
( req: HttpRequest, spa_info: web::Data<SinglePageApplication>, )
crates/create-rust-app/src/util/actix_web_utils.rs:32
Function
render_views
(uri: &Uri)
crates/create-rust-app/src/util/poem_utils.rs:54
Function
render_views
(req: HttpRequest)
crates/create-rust-app/src/util/actix_web_utils.rs:61
Function
reset
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/containers/ResetPage.tsx:15
Function
reset_password
reset changes the password of the user associated with [`item.reset_token`](`ResetInput`) to [`item.new_password`](`ResetInput`) # Errors - 400: Mis
crates/create-rust-app/src/auth/controller.rs:776
Function
reset_password
( db: Data<Database>, Json(item): Json<ResetInput>, mailer: Data<Mailer>, )
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:558
Function
reset_password
handler for POST requests to the .../reset endpoint request must have the `Content-Type: application/json` header, and a Json payload that can be des
crates/create-rust-app/src/auth/endpoints/service_poem.rs:354
Method
revoke_all_from_role
revokes every permission granted to `role` returns `Ok(())`, if successful # Errors If `RolePermission::delete_all` fails, returns the error
crates/create-rust-app/src/auth/permissions/mod.rs:298
Method
revoke_all_from_user
revokes every permission granted to the User whose id is [`user_id`](`ID`) returns `Ok(())`, if successful # Errors if `UserPermission::delete_all`
crates/create-rust-app/src/auth/permissions/mod.rs:310
Method
revoke_from_role
revokes `permission` from `role` returns `Ok(())`, if successful # Errors if `RolePermission::delete` fails, returns the error TODO: don't return a
crates/create-rust-app/src/auth/permissions/mod.rs:254
Method
revoke_from_user
revokes `permission` from the User whose id is [`user_id`](`ID`) returns `Ok(())`, if successful # Errors If `UserPermission::delete` fails, returns
crates/create-rust-app/src/auth/permissions/mod.rs:240
Method
revoke_many_from_role
revokes every permission in `permissions` from `role` returns `Ok(())`, if successful # Errors if `RolePermission::delete_many` fails, returns the e
crates/create-rust-app/src/auth/permissions/mod.rs:282
Method
revoke_many_from_user
revokes every permission in `permissions` from the User whose id is [`user_id`](`ID`) returns `Ok(())`, if successful # Errors if `UserPermission::d
crates/create-rust-app/src/auth/permissions/mod.rs:266
Method
roles
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/hooks/useAuth.tsx:21
Method
run
(&self, _queueable: &mut dyn AsyncQueueable)
crates/create-rust-app_cli/template-plugin-tasks/backend/tasks/daily_todo_async.rs:17
Method
run
(&self, queue: &dyn Queueable)
crates/create-rust-app_cli/template-plugin-tasks/backend/tasks/daily_todo.rs:18
Function
run_server
# Panics if the project directory doesn't exist if the project directory doesn't contain a Cargo.toml file if the Cargo.toml file doesn't list `create
crates/create-rust-app/src/dev/mod.rs:230
Function
send
(mailer: &Mailer, to_email: &str, link: &str)
crates/create-rust-app/src/auth/mail/auth_recover_existent_account.rs:4
Function
send
(mailer: &Mailer, to_email: &str)
crates/create-rust-app/src/auth/mail/auth_password_changed.rs:4
Function
send
(mailer: &Mailer, to_email: &str, link: &str)
crates/create-rust-app/src/auth/mail/auth_recover_nonexistent_account.rs:4
Function
send
(mailer: &Mailer, to_email: &str)
crates/create-rust-app/src/auth/mail/auth_activated.rs:4
Function
send
(mailer: &Mailer, to_email: &str)
crates/create-rust-app/src/auth/mail/auth_password_reset.rs:4
Function
sessions
( db: Data<Database>, auth: Auth, Query(info): Query<PaginationParams>, )
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:49
Function
sessions
handler for GET requests at the .../sessions endpoint, requires auth request should be a query that contains [`PaginationParams`] see [`controller:
crates/create-rust-app/src/auth/endpoints/service_poem.rs:41
Function
setup
()
crates/create-rust-app/src/lib.rs:114
Function
setup_development
()
crates/create-rust-app/src/dev/mod.rs:61
Function
start
( project_dir: &'static str, dev_port: u16, mut signal_rx: Receiver<DevServerEvent>, _dev_serv
crates/create-rust-app/src/dev/frontend_dev_server.rs:13
Function
start
( project_dir: &'static str, dev_port: u16, mut signal_rx: Receiver<DevServerEvent>, // this is sp
crates/create-rust-app/src/dev/backend_compiling_server.rs:23
Method
task_type
This will be useful if you want to filter tasks. the default value is `common`
crates/create-rust-app_cli/template-plugin-tasks/backend/tasks/daily_todo_async.rs:36
Function
test_both_fail
we want the special case here
crates/create-rust-app/src/util/workspace_utils.rs:140
Function
test_compiled_at_root_but_running_somewhere_else
we can't know what the user would want here, so they should set the environment variables to determine the behavior
crates/create-rust-app/src/util/workspace_utils.rs:194
Function
test_compiled_somewhere_else_but_running_at_root
we want the default case here
crates/create-rust-app/src/util/workspace_utils.rs:209
Function
test_file_path_to_vec_string
()
crates/qsync/src/utils.rs:18
Function
test_hook_printing
()
crates/qsync/src/processor.rs:124
Function
test_not_using_workspaces
we want the default case here
crates/create-rust-app/src/util/workspace_utils.rs:149
Function
test_running_in_another_cargo_project
we can't know what the user would want here, so they should set the environment variables to determine the behavior
crates/create-rust-app/src/util/workspace_utils.rs:224
Function
test_using_workspaces_at_workspace_root
we want the default case here
crates/create-rust-app/src/util/workspace_utils.rs:164
Function
test_using_workspaces_not_at_workspace_root
we want the special case here
crates/create-rust-app/src/util/workspace_utils.rs:179
Method
transform
(&self, ep: E)
crates/create-rust-app/src/logger.rs:12
Method
unassign
unassigns `role` from the User whose id is [`user_id`](`ID`) returns true if successful # Errors infallible TODO: don't return a result if we never
crates/create-rust-app/src/auth/permissions/mod.rs:78
Method
unassign_many
unassigns every role in `roles` from the User whose id is [`user_id`](`ID`) returns true if successful # Errors infallible TODO: don't return a res
crates/create-rust-app/src/auth/permissions/mod.rs:92
Method
uniq
If `uniq` is set to true and the task is already in the storage, it won't be inserted again The existing record will be returned for for any insertion
crates/create-rust-app_cli/template-plugin-tasks/backend/tasks/daily_todo_async.rs:42
Method
uniq
If `uniq` is set to true and the task is already in the storage, it won't be inserted again The existing record will be returned for for any insertion
crates/create-rust-app_cli/template-plugin-tasks/backend/tasks/daily_todo.rs:43
Method
update
Update the entry in [`db`](`Connection`)'s `user_sessions` table who's primary key matches [`item_id`](`ID`), with the data in [`item`](`UserSessionCh
crates/create-rust-app/src/auth/user_session.rs:142
Method
update
( db: &mut Connection, param_id: i32, item: &UpdateUserOauth2Link, )
crates/create-rust-app/src/auth/oidc/model.rs:114
Method
upload_uri
returns a URI that can be used to upload an object to the bucket # Arguments `key` - the key of the object to upload `expires_in` - the duration for
crates/create-rust-app/src/storage/mod.rs:176
Function
useAuthCheck
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/hooks/useAuth.tsx:138
Function
useAuthenticatedApolloClient
()
crates/create-rust-app_cli/template-plugin-graphql/frontend/src/hooks/useAuthenticatedApolloClient.ts:8
Function
views_glob
fn for the path to the project's views directory
crates/create-rust-app/src/util/workspace_utils.rs:118
Function
vitejs_down_handler
(State(state): State<Arc<AppState>>)
crates/create-rust-app/src/dev/dev_server.rs:116
Function
vitejs_up_handler
(State(state): State<Arc<AppState>>)
crates/create-rust-app/src/dev/dev_server.rs:109
Method
with_custom_email_templates
( mut self, templates: T, )
crates/create-rust-app/src/lib.rs:83
Function
ws_handler
(ws: WebSocketUpgrade, State(state): State<Arc<AppState>>)
crates/create-rust-app/src/dev/dev_server.rs:123
← previous
301–384 of 384, ranked by callers