JavaScript is disabled, refresh for a better experience. ambee/giterated

ambee/giterated

Git repository hosting, collaboration, and discovery for the Fediverse.

Fucking whatever there you go

Amber - ⁨2⁩ years ago

parent: tbd commit: ⁨57c2ca5

⁨plugins/giterated-backend/src/value.rs⁩ - ⁨732⁩ bytes
Raw
1 use giterated_models::{
2 error::OperationError,
3 user::{Bio, DisplayName, User},
4 };
5
6 use crate::DatabaseBackend;
7
8 pub async fn user_get_display_name(
9 state: DatabaseBackend,
10 user: User,
11 ) -> Result<DisplayName, OperationError<anyhow::Error>> {
12 todo!()
13 }
14
15 pub async fn user_set_display_name(
16 state: DatabaseBackend,
17 user: User,
18 display_name: DisplayName,
19 ) -> Result<(), OperationError<anyhow::Error>> {
20 todo!()
21 }
22
23 pub async fn user_get_bio(
24 state: DatabaseBackend,
25 user: User,
26 ) -> Result<Bio, OperationError<anyhow::Error>> {
27 todo!()
28 }
29
30 pub async fn user_set_bio(
31 state: DatabaseBackend,
32 user: User,
33 bio: Bio,
34 ) -> Result<(), OperationError<anyhow::Error>> {
35 todo!()
36 }
37