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
Method
create_many
Create an entry in [`db`](`Connection`)'s user_permissions table for each [element](`UserPermissionChangeset`) in `items` # Errors [`diesel::result::
crates/create-rust-app/src/auth/permissions/user_permission.rs:63
Method
cron
This will be useful if you would like to schedule tasks. Default value is None (the task is not scheduled, it's just executed as soon as it's inserted
crates/create-rust-app_cli/template-plugin-tasks/backend/tasks/daily_todo_async.rs:48
Method
cron
(&self)
crates/create-rust-app_cli/template-plugin-tasks/backend/tasks/daily_todo.rs:47
Method
default
()
crates/create-rust-app/src/database/mod.rs:29
Method
default
()
crates/create-rust-app/src/storage/mod.rs:45
Method
delete
Delete the entry in [`db`](`Connection`)'s `user_sessions` table who's primary key matches [`item_id`](`ID`) # Errors [`diesel::result::Error`](`dies
crates/create-rust-app/src/auth/user_session.rs:159
Method
delete
Delete the entry in [`db`](`Connection`)'s `role_permissions` table that has (`item_role`,`item_permission`) as it's primary keys # Errors [`diesel::
crates/create-rust-app/src/auth/permissions/role_permission.rs:118
Method
delete
Delete the entry in [`db`](`Connection`)'s `user_roles` table that has (`item_user_id`,`item_role`) as it's primary keys # Errors [`diesel::result::E
crates/create-rust-app/src/auth/permissions/user_role.rs:114
Method
delete
Delete the entry in [`db`](`Connection`)'s `user_permissions` table that has (`item_user_id`,`item_permission`) as it's primary keys # Errors [`diese
crates/create-rust-app/src/auth/permissions/user_permission.rs:124
Method
delete
Delete the entry in [`db`](`Connection`)'s `attachment_blobs` table who's primary key matches [`item_id`](`ID`) # Errors Diesel error
crates/create-rust-app/src/storage/attachment_blob.rs:99
Method
delete_all
Delete the entry in [`db`](`Connection`)'s `role_permissions` table that has `item_role` as one of it's primary keys # Errors [`diesel::result::Error
crates/create-rust-app/src/auth/permissions/role_permission.rs:156
Method
delete_all
Delete the entry in [`db`](`Connection`)'s `user_permissions` table that has `item_user_id` as one of it's primary keys # Errors [`diesel::result::Er
crates/create-rust-app/src/auth/permissions/user_permission.rs:162
Method
delete_all
Delete every entry in [`db`](`Connection`)'s `attachment_blobs` table who's primary key matches [`item_id`](`ID`) # Errors Diesel error
crates/create-rust-app/src/storage/attachment_blob.rs:110
Method
delete_all
(db: &mut Connection, item_ids: Vec<ID>)
crates/create-rust-app/src/storage/attachment.rs:422
Method
delete_all_for_user
Delete all entries in [`db`](`Connection`)'s `user_sessions` table who's '`user_id`' matches [`item_user_id`](`ID`) # Errors [`diesel::result::Error`
crates/create-rust-app/src/auth/user_session.rs:170
Method
delete_many
Delete every entry in [`db`](`Connection`)'s `role_permissions` table that has `item_role`, and an element of`item_permissions` as it's primary keys
crates/create-rust-app/src/auth/permissions/role_permission.rs:136
Method
delete_many
Delete every entry in [`db`](`Connection`)'s `user_roles` table that has `item_user_id`, and an element of`item_roles` as it's primary keys # Errors
crates/create-rust-app/src/auth/permissions/user_role.rs:126
Method
delete_many
Delete every entry in [`db`](`Connection`)'s `user_permissions` table that has `item_user_id`, and an element of`item_permissions` as it's primary key
crates/create-rust-app/src/auth/permissions/user_permission.rs:142
Function
destroy_session
/sessions/{id} deletes the entry in the `user_session` with the specified [`item_id`](`ID`) from [`db`](`Database`) if it's owned by the User associa
crates/create-rust-app/src/auth/controller.rs:179
Function
destroy_session
( db: Data<Database>, item_id: Path<ID>, auth: Auth, )
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:86
Function
destroy_session
handler for DELETE requests at the .../sessions/{id} endpoint. requires auth see [`controller::destroy_session`] # Responses | StatusCode | conten
crates/create-rust-app/src/auth/endpoints/service_poem.rs:94
Function
destroy_sessions
/sessions destroys all entries in the `user_session` table in [`db`](`Database`) owned by the User associated with [`auth`](`Auth`) # Errors - 500:
crates/create-rust-app/src/auth/controller.rs:210
Function
destroy_sessions
(db: Data<Database>, auth: Auth)
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:122
Function
destroy_sessions
handler for DELETE requests at the .../sessions enpoint requires auth deletes all current sessions belonging to the user see [`controller::destroy_
crates/create-rust-app/src/auth/endpoints/service_poem.rs:69
Method
detach
(db: &mut Connection, storage: &Storage, item_id: ID)
crates/create-rust-app/src/storage/attachment.rs:230
Method
detach_all
# Errors Diesel error
crates/create-rust-app/src/storage/attachment.rs:300
Method
download
download an object from the bucket # Arguments `key` - the key of the object to download `to_path` - the path to download the object to # Errors cou
crates/create-rust-app/src/storage/mod.rs:59
Method
download_uri
if `expires_in` is `None`, then we assume the bucket is publicly accessible and return the public URL. For this to work, you have to make sure the buc
crates/create-rust-app/src/storage/mod.rs:97
Function
endpoints
(scope: actix_web::Scope)
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:577
Function
endpoints
(scope: Scope)
crates/create-rust-app/src/dev/endpoints/service_actixweb.rs:17
Method
error_response
builds an [`HttpResponse`] for [`self`](`AuthError`)
crates/create-rust-app/src/auth/extractors/auth_actixweb.rs:40
Method
fetch_all
returns a vector containing every role assigned to the User whose id is [`user_id`](`ID`) # Errors [`diesel::result::Error`](`diesel::result::Error`)
crates/create-rust-app/src/auth/permissions/mod.rs:102
Method
find_all_by_id
Read from [`db`](`Connection`), querying for an entry in the `attachment_blobs` table for each [`item_id`](`ID`) in `item_ids` # Errors Diesel error
crates/create-rust-app/src/storage/attachment_blob.rs:69
Method
find_all_for_record
Find all attachments for a given record type and record id # Errors Diesel error
crates/create-rust-app/src/storage/attachment.rs:378
Method
find_all_for_records
Find all attachments for a given record type and record ids # Errors Diesel error
crates/create-rust-app/src/storage/attachment.rs:395
Method
find_by_email
Queries [`db`](`Connection`)'s `users` table for an entry with an email that matches the given `item_email` # Errors [`diesel::result::Error`](`diese
crates/create-rust-app/src/auth/user.rs:75
Method
find_by_id
Read from [`db`](`Connection`), querying for an entry in the `attachment_blobs` table who's primary key matches [`item_id`](`ID`) # Errors Diesel err
crates/create-rust-app/src/storage/attachment_blob.rs:57
Method
find_by_id
(db: &mut Connection, item_id: ID)
crates/create-rust-app/src/storage/attachment.rs:351
Method
find_by_refresh_token
Query [`db`](`Connection`)'s `user_sessions` table for an entry who's `refresh_token` matches the given `item_refresh_token` # Errors [`diesel::resul
crates/create-rust-app/src/auth/user_session.rs:86
Method
find_for_record
Find an attachment for a given record type and record id # Errors Diesel error
crates/create-rust-app/src/storage/attachment.rs:361
Function
forgot_password
/forgot sends an email to the email in the [`ForgotInput`] Json in the request body that will allow the user associated with that email to change thei
crates/create-rust-app/src/auth/controller.rs:639
Function
forgot_password
( db: Data<Database>, Json(item): Json<ForgotInput>, mailer: Data<Mailer>, )
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:466
Function
forgot_password
handler for POST requests to the .../forgot endpoint request must have the `Content-Type: application/json` header, and a Json payload that can be de
crates/create-rust-app/src/auth/endpoints/service_poem.rs:287
Method
from_request
extracts [`Auth`] from the given [`req`](`HttpRequest`)
crates/create-rust-app/src/auth/extractors/auth_actixweb.rs:60
Method
from_request
extracts [`Auth`] from the given [`req`](`Request`)
crates/create-rust-app/src/auth/extractors/auth_poem.rs:17
Function
frontend_dir
fn for the path to the project's frontend directory
crates/create-rust-app/src/util/workspace_utils.rs:86
Function
get_current_cra_lib_version
const CRA_CARGO_TOML: &'static str = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/../create-rust-app/Cargo.toml")); fn get_current_cra_lib_versi
crates/create-rust-app_cli/src/content/project.rs:43
Method
get_or_init_pool
()
crates/create-rust-app/src/database/mod.rs:52
Method
grant_many_to_role
grants every permission in `permissions` to `role` returns `Ok(())`, if successful # Errors if `RolePermission::create_many` fails, returns the erro
crates/create-rust-app/src/auth/permissions/mod.rs:190
Method
grant_many_to_user
grants every permission in `permissions` to `role` returns `Ok(())`, if successful # Errors If `UserPermission::create_many` fails, returns the erro
crates/create-rust-app/src/auth/permissions/mod.rs:215
Method
grant_to_role
grant `permission` to `role` returns `Ok(())`, if successful # Errors if `RolePermission::create` fails, returns the error
crates/create-rust-app/src/auth/permissions/mod.rs:172
Method
grant_to_user
grants `permission` to the User whose id is [`user_id`](`ID`) returns `Ok(())`, if successful # Errors if `UserPermission::create` fails, returns th
crates/create-rust-app/src/auth/permissions/mod.rs:154
Method
hasPermission
(permission: string)
crates/create-rust-app_cli/template-plugin-auth/frontend/src/hooks/useAuth.tsx:44
Method
hasRole
(role: string)
crates/create-rust-app_cli/template-plugin-auth/frontend/src/hooks/useAuth.tsx:43
Method
has_all_permissions
(&self, perms: impl AsRef<[String]>)
crates/create-rust-app/src/auth/extractors/auth.rs:28
Method
has_all_roles
(&self, roles: impl AsRef<[String]>)
crates/create-rust-app/src/auth/extractors/auth.rs:52
Method
has_any_permission
(&self, perms: impl AsRef<[String]>)
crates/create-rust-app/src/auth/extractors/auth.rs:37
Method
has_any_roles
does the user with the id [`self.user_id`](`ID`) have any of the given `roles`
crates/create-rust-app/src/auth/extractors/auth.rs:57
Method
hash
(&self, state: &mut H)
crates/create-rust-app/src/auth/permissions/mod.rs:128
Function
health
/health
crates/create-rust-app/src/dev/controller.rs:162
Method
init
( host: &str, region: Region, access_key_id: String, secret_access_key: String
crates/create-rust-app/src/storage/mod.rs:290
Method
install
(&self, install_config: InstallConfig)
crates/create-rust-app_cli/src/plugins/utoipa.rs:15
Method
install
(&self, install_config: InstallConfig)
crates/create-rust-app_cli/src/plugins/container.rs:19
Method
install
(&self, install_config: InstallConfig)
crates/create-rust-app_cli/src/plugins/tasks.rs:23
Method
install
(&self, install_config: InstallConfig)
crates/create-rust-app_cli/src/plugins/graphql.rs:22
Method
install
(&self, install_config: InstallConfig)
crates/create-rust-app_cli/src/plugins/auth.rs:22
Method
install
(&self, install_config: InstallConfig)
crates/create-rust-app_cli/src/plugins/auth_oidc.rs:22
Method
install
(&self, install_config: InstallConfig)
crates/create-rust-app_cli/src/plugins/storage.rs:22
Function
is_connected
(db: &Database)
crates/create-rust-app/src/dev/controller.rs:48
Method
is_safe
(&self)
crates/create-rust-app/src/util/template_utils.rs:59
Function
load_manifest_entries
()
crates/create-rust-app/src/util/template_utils.rs:154
Function
login
/login creates a user session for the user associated with [`item`](`LoginInput`) in the request body (have the `content-type` header set to `applica
crates/create-rust-app/src/auth/controller.rs:243
Function
login
(db: Data<Database>, Json(item): Json<LoginInput>)
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:154
Function
login
handler for POST requests at the .../login 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:124
Function
login
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/containers/LoginPage.tsx:12
Function
login
(email: string, password: string)
crates/create-rust-app_cli/template-plugin-auth/frontend/src/hooks/useAuth.tsx:84
Function
logout
/logout If this is successful, delete the cookie storing the refresh token # Errors - 401: Invalid session - 401: Invalid token - 500: Could not dele
crates/create-rust-app/src/auth/controller.rs:374
Function
logout
safe because we're running blocking actions in a web::block
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:314
Function
logout
handler for POST requests to the .../logout endpount see [`controller::logout'] # Responses | StatusCode | content | |:------------|---------| | 200
crates/create-rust-app/src/auth/endpoints/service_poem.rs:161
Function
logout
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/hooks/useAuth.tsx:114
Function
main
Executes tasks in the default work queue
crates/create-rust-app_cli/template-plugin-tasks/backend/queue.rs:27
Function
main
()
crates/create-rust-app_cli/template-plugin-tasks/backend/async_queue.rs:28
Function
main
CREATE RUST APP A MODERN WAY TO BOOTSTRAP A RUST+REACT APP IN A SINGLE COMMAND
crates/create-rust-app_cli/src/main.rs:178
Function
main
()
crates/create-rust-app_cli/template/build.rs:42
Method
max_retries
the maximum number of retries. Set it to 0 to make it not retryable the default value is 20
crates/create-rust-app_cli/template-plugin-tasks/backend/tasks/daily_todo_async.rs:57
Method
modify
(&self, openapi: &mut utoipa::openapi::OpenApi)
crates/create-rust-app/src/auth/mod.rs:101
Method
name
(&self)
crates/create-rust-app_cli/src/plugins/utoipa.rs:11
Method
name
(&self)
crates/create-rust-app_cli/src/plugins/container.rs:15
Method
name
(&self)
crates/create-rust-app_cli/src/plugins/tasks.rs:19
Method
name
(&self)
crates/create-rust-app_cli/src/plugins/graphql.rs:17
Method
name
(&self)
crates/create-rust-app_cli/src/plugins/auth.rs:17
Method
name
(&self)
crates/create-rust-app_cli/src/plugins/auth_oidc.rs:17
Method
name
(&self)
crates/create-rust-app_cli/src/plugins/storage.rs:17
Method
new
()
crates/create-rust-app/src/mailer.rs:79
Method
new
()
crates/create-rust-app/src/database/mod.rs:37
Method
new
(reason: String, status: StatusCode)
crates/create-rust-app/src/auth/extractors/auth_actixweb.rs:25
Method
new
()
crates/create-rust-app/src/storage/mod.rs:318
Method
new
(path: PathBuf, options: QsyncOptions)
crates/qsync/src/processor.rs:479
Function
not_found
TODO: documentation
crates/create-rust-app/src/lib.rs:145
Function
oidc_login
TODO: return result (or specific http response) instead of panicking
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:218
← previous
next →
201–300 of 384, ranked by callers