MCPcopy Create free account

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

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

Functionoidc_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
Methodpermissions
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/hooks/useAuth.tsx:25
Methodping
(&self, ctx: &Context<'_>)
crates/create-rust-app_cli/template-plugin-graphql/backend/graphql/query.rs:8
Functionqsync
(_attr: TokenStream, item: TokenStream)
crates/qsync/qsync-macro/src/lib.rs:6
Functionquery
(db: Data<&Database>, body: Json<MySqlQuery>)
crates/create-rust-app/src/dev/endpoints/service_poem.rs:14
Functionquery_db
/db/query # Errors query fails # Panics cannot connect to the database
crates/create-rust-app/src/dev/controller.rs:37
Methodread
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
Methodread
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
Methodread
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
Methodread
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
Methodread
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
Methodread
(db: &mut Connection, param_id: i32)
crates/create-rust-app/src/auth/oidc/model.rs:85
Methodread_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
Methodread_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
Methodread_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
Methodread_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
Methodread_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
Methodread_by_csrf_token
( db: &mut Connection, param_provider: String, param_token: String, )
crates/create-rust-app/src/auth/oidc/model.rs:91
Methodread_by_subject
(db: &mut Connection, param_subject_id: String)
crates/create-rust-app/src/auth/oidc/model.rs:106
Methodreason
(reason: String)
crates/create-rust-app/src/auth/extractors/auth_actixweb.rs:30
Functionrecover
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/containers/RecoveryPage.tsx:11
Functionrefresh
/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
Functionrefresh
safe because we're running blocking actions in a web::block
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:354
Functionrefresh
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
Functionregister
/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
Functionregister
( db: Data<Database>, Json(item): Json<RegisterInput>, mailer: Data<Mailer>, )
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:399
Functionregister
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
Functionregister
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/containers/RegistrationPage.tsx:12
Functionrender_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
Functionrender_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
Functionrender_spa_handler
( uri: &Uri, spa_info: Data<&SinglePageApplication>, )
crates/create-rust-app/src/util/poem_utils.rs:31
Functionrender_spa_handler
( req: HttpRequest, spa_info: web::Data<SinglePageApplication>, )
crates/create-rust-app/src/util/actix_web_utils.rs:32
Functionrender_views
(uri: &Uri)
crates/create-rust-app/src/util/poem_utils.rs:54
Functionrender_views
(req: HttpRequest)
crates/create-rust-app/src/util/actix_web_utils.rs:61
Functionreset
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/containers/ResetPage.tsx:15
Functionreset_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
Functionreset_password
( db: Data<Database>, Json(item): Json<ResetInput>, mailer: Data<Mailer>, )
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:558
Functionreset_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
Methodrevoke_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
Methodrevoke_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
Methodrevoke_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
Methodrevoke_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
Methodrevoke_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
Methodrevoke_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
Methodroles
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/hooks/useAuth.tsx:21
Methodrun
(&self, _queueable: &mut dyn AsyncQueueable)
crates/create-rust-app_cli/template-plugin-tasks/backend/tasks/daily_todo_async.rs:17
Methodrun
(&self, queue: &dyn Queueable)
crates/create-rust-app_cli/template-plugin-tasks/backend/tasks/daily_todo.rs:18
Functionrun_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
Functionsend
(mailer: &Mailer, to_email: &str, link: &str)
crates/create-rust-app/src/auth/mail/auth_recover_existent_account.rs:4
Functionsend
(mailer: &Mailer, to_email: &str)
crates/create-rust-app/src/auth/mail/auth_password_changed.rs:4
Functionsend
(mailer: &Mailer, to_email: &str, link: &str)
crates/create-rust-app/src/auth/mail/auth_recover_nonexistent_account.rs:4
Functionsend
(mailer: &Mailer, to_email: &str)
crates/create-rust-app/src/auth/mail/auth_activated.rs:4
Functionsend
(mailer: &Mailer, to_email: &str)
crates/create-rust-app/src/auth/mail/auth_password_reset.rs:4
Functionsessions
( db: Data<Database>, auth: Auth, Query(info): Query<PaginationParams>, )
crates/create-rust-app/src/auth/endpoints/service_actixweb.rs:49
Functionsessions
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
Functionsetup
()
crates/create-rust-app/src/lib.rs:114
Functionsetup_development
()
crates/create-rust-app/src/dev/mod.rs:61
Functionstart
( 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
Functionstart
( 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
Methodtask_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
Functiontest_both_fail
we want the special case here
crates/create-rust-app/src/util/workspace_utils.rs:140
Functiontest_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
Functiontest_compiled_somewhere_else_but_running_at_root
we want the default case here
crates/create-rust-app/src/util/workspace_utils.rs:209
Functiontest_file_path_to_vec_string
()
crates/qsync/src/utils.rs:18
Functiontest_hook_printing
()
crates/qsync/src/processor.rs:124
Functiontest_not_using_workspaces
we want the default case here
crates/create-rust-app/src/util/workspace_utils.rs:149
Functiontest_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
Functiontest_using_workspaces_at_workspace_root
we want the default case here
crates/create-rust-app/src/util/workspace_utils.rs:164
Functiontest_using_workspaces_not_at_workspace_root
we want the special case here
crates/create-rust-app/src/util/workspace_utils.rs:179
Methodtransform
(&self, ep: E)
crates/create-rust-app/src/logger.rs:12
Methodunassign
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
Methodunassign_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
Methoduniq
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
Methoduniq
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
Methodupdate
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
Methodupdate
( db: &mut Connection, param_id: i32, item: &UpdateUserOauth2Link, )
crates/create-rust-app/src/auth/oidc/model.rs:114
Methodupload_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
FunctionuseAuthCheck
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/hooks/useAuth.tsx:138
FunctionuseAuthenticatedApolloClient
()
crates/create-rust-app_cli/template-plugin-graphql/frontend/src/hooks/useAuthenticatedApolloClient.ts:8
Functionviews_glob
fn for the path to the project's views directory
crates/create-rust-app/src/util/workspace_utils.rs:118
Functionvitejs_down_handler
(State(state): State<Arc<AppState>>)
crates/create-rust-app/src/dev/dev_server.rs:116
Functionvitejs_up_handler
(State(state): State<Arc<AppState>>)
crates/create-rust-app/src/dev/dev_server.rs:109
Methodwith_custom_email_templates
( mut self, templates: T, )
crates/create-rust-app/src/lib.rs:83
Functionws_handler
(ws: WebSocketUpgrade, State(state): State<Arc<AppState>>)
crates/create-rust-app/src/dev/dev_server.rs:123
← previous301–384 of 384, ranked by callers