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

ambee/giterated

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

Fixed imports!

Amber - ⁨2⁩ years ago

parent: tbd commit: ⁨ef0e853

⁨giterated-models/src/repository/settings.rs⁩ - ⁨485⁩ bytes
Raw
1 use serde::{Deserialize, Serialize};
2
3 use crate::settings::Setting;
4
5 #[derive(Debug, Serialize, Deserialize)]
6 pub struct RepositoryDescription(pub String);
7
8 impl Setting for RepositoryDescription {
9 fn name() -> &'static str {
10 "Repository Description"
11 }
12 }
13
14 #[derive(Debug, Serialize, Deserialize)]
15 pub struct RepositoryVisibilitySetting(pub String);
16
17 impl Setting for RepositoryVisibilitySetting {
18 fn name() -> &'static str {
19 "Repository Visibility"
20 }
21 }
22