MCPcopy Create free account

hub / github.com/Wulf/create-rust-app / functions

Functions384 in github.com/Wulf/create-rust-app

Methodcreate_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
Methodcron
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
Methodcron
(&self)
crates/create-rust-app_cli/template-plugin-tasks/backend/tasks/daily_todo.rs:47
Methoddefault
()
crates/create-rust-app/src/database/mod.rs:29
Methoddefault
()
crates/create-rust-app/src/storage/mod.rs:45
Methoddelete
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
Methoddelete
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
Methoddelete
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
Methoddelete
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
Methoddelete
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
Methoddelete_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
Methoddelete_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
Methoddelete_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
Methoddelete_all
(db: &mut Connection, item_ids: Vec<ID>)
crates/create-rust-app/src/storage/attachment.rs:422
Methoddelete_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
Methoddelete_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
Methoddelete_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
Methoddelete_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
Functiondestroy_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
Functiondestroy_session
( db: Data<Database>, item_id: Path<ID>, auth: Auth, )
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:86
Functiondestroy_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
Functiondestroy_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
Functiondestroy_sessions
(db: Data<Database>, auth: Auth)
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:122
Functiondestroy_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
Methoddetach
(db: &mut Connection, storage: &Storage, item_id: ID)
crates/create-rust-app/src/storage/attachment.rs:230
Methoddetach_all
# Errors Diesel error
crates/create-rust-app/src/storage/attachment.rs:300
Methoddownload
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
Methoddownload_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
Functionendpoints
(scope: actix_web::Scope)
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:577
Functionendpoints
(scope: Scope)
crates/create-rust-app/src/dev/endpoints/service_actixweb.rs:17
Methoderror_response
builds an [`HttpResponse`] for [`self`](`AuthError`)
crates/create-rust-app/src/auth/extractors/auth_actixweb.rs:40
Methodfetch_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
Methodfind_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
Methodfind_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
Methodfind_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
Methodfind_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
Methodfind_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
Methodfind_by_id
(db: &mut Connection, item_id: ID)
crates/create-rust-app/src/storage/attachment.rs:351
Methodfind_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
Methodfind_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
Functionforgot_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
Functionforgot_password
( db: Data<Database>, Json(item): Json<ForgotInput>, mailer: Data<Mailer>, )
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:466
Functionforgot_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
Methodfrom_request
extracts [`Auth`] from the given [`req`](`HttpRequest`)
crates/create-rust-app/src/auth/extractors/auth_actixweb.rs:60
Methodfrom_request
extracts [`Auth`] from the given [`req`](`Request`)
crates/create-rust-app/src/auth/extractors/auth_poem.rs:17
Functionfrontend_dir
fn for the path to the project's frontend directory
crates/create-rust-app/src/util/workspace_utils.rs:86
Functionget_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
Methodget_or_init_pool
()
crates/create-rust-app/src/database/mod.rs:52
Methodgrant_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
Methodgrant_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
Methodgrant_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
Methodgrant_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
MethodhasPermission
(permission: string)
crates/create-rust-app_cli/template-plugin-auth/frontend/src/hooks/useAuth.tsx:44
MethodhasRole
(role: string)
crates/create-rust-app_cli/template-plugin-auth/frontend/src/hooks/useAuth.tsx:43
Methodhas_all_permissions
(&self, perms: impl AsRef<[String]>)
crates/create-rust-app/src/auth/extractors/auth.rs:28
Methodhas_all_roles
(&self, roles: impl AsRef<[String]>)
crates/create-rust-app/src/auth/extractors/auth.rs:52
Methodhas_any_permission
(&self, perms: impl AsRef<[String]>)
crates/create-rust-app/src/auth/extractors/auth.rs:37
Methodhas_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
Methodhash
(&self, state: &mut H)
crates/create-rust-app/src/auth/permissions/mod.rs:128
Functionhealth
/health
crates/create-rust-app/src/dev/controller.rs:162
Methodinit
( host: &str, region: Region, access_key_id: String, secret_access_key: String
crates/create-rust-app/src/storage/mod.rs:290
Methodinstall
(&self, install_config: InstallConfig)
crates/create-rust-app_cli/src/plugins/utoipa.rs:15
Methodinstall
(&self, install_config: InstallConfig)
crates/create-rust-app_cli/src/plugins/container.rs:19
Methodinstall
(&self, install_config: InstallConfig)
crates/create-rust-app_cli/src/plugins/tasks.rs:23
Methodinstall
(&self, install_config: InstallConfig)
crates/create-rust-app_cli/src/plugins/graphql.rs:22
Methodinstall
(&self, install_config: InstallConfig)
crates/create-rust-app_cli/src/plugins/auth.rs:22
Methodinstall
(&self, install_config: InstallConfig)
crates/create-rust-app_cli/src/plugins/auth_oidc.rs:22
Methodinstall
(&self, install_config: InstallConfig)
crates/create-rust-app_cli/src/plugins/storage.rs:22
Functionis_connected
(db: &Database)
crates/create-rust-app/src/dev/controller.rs:48
Methodis_safe
(&self)
crates/create-rust-app/src/util/template_utils.rs:59
Functionload_manifest_entries
()
crates/create-rust-app/src/util/template_utils.rs:154
Functionlogin
/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
Functionlogin
(db: Data<Database>, Json(item): Json<LoginInput>)
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:154
Functionlogin
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
Functionlogin
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/containers/LoginPage.tsx:12
Functionlogin
(email: string, password: string)
crates/create-rust-app_cli/template-plugin-auth/frontend/src/hooks/useAuth.tsx:84
Functionlogout
/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
Functionlogout
safe because we're running blocking actions in a web::block
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:314
Functionlogout
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
Functionlogout
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/hooks/useAuth.tsx:114
Functionmain
Executes tasks in the default work queue
crates/create-rust-app_cli/template-plugin-tasks/backend/queue.rs:27
Functionmain
()
crates/create-rust-app_cli/template-plugin-tasks/backend/async_queue.rs:28
Functionmain
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
Functionmain
()
crates/create-rust-app_cli/template/build.rs:42
Methodmax_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
Methodmodify
(&self, openapi: &mut utoipa::openapi::OpenApi)
crates/create-rust-app/src/auth/mod.rs:101
Methodname
(&self)
crates/create-rust-app_cli/src/plugins/utoipa.rs:11
Methodname
(&self)
crates/create-rust-app_cli/src/plugins/container.rs:15
Methodname
(&self)
crates/create-rust-app_cli/src/plugins/tasks.rs:19
Methodname
(&self)
crates/create-rust-app_cli/src/plugins/graphql.rs:17
Methodname
(&self)
crates/create-rust-app_cli/src/plugins/auth.rs:17
Methodname
(&self)
crates/create-rust-app_cli/src/plugins/auth_oidc.rs:17
Methodname
(&self)
crates/create-rust-app_cli/src/plugins/storage.rs:17
Methodnew
()
crates/create-rust-app/src/mailer.rs:79
Methodnew
()
crates/create-rust-app/src/database/mod.rs:37
Methodnew
(reason: String, status: StatusCode)
crates/create-rust-app/src/auth/extractors/auth_actixweb.rs:25
Methodnew
()
crates/create-rust-app/src/storage/mod.rs:318
Methodnew
(path: PathBuf, options: QsyncOptions)
crates/qsync/src/processor.rs:479
Functionnot_found
TODO: documentation
crates/create-rust-app/src/lib.rs:145
Functionoidc_login
TODO: return result (or specific http response) instead of panicking
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:218
← previousnext →201–300 of 384, ranked by callers