ephemeris_forge_forgejo/operation/repository.rs
1use std::fmt;
2
3use crate::api::request::EditRepoOption;
4
5/// One write to the repository's own settings.
6///
7/// It replaces the topics and patches the changed repository fields.
8#[derive(Clone, Debug, Eq, PartialEq)]
9pub struct Operation {
10 /// The complete topic set, when it differs from the live one.
11 pub topics: Option<Vec<String>>,
12 /// The changed repository fields.
13 pub edit: Box<EditRepoOption>,
14}
15
16impl fmt::Display for Operation {
17 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
18 f.write_str("repository")
19 }
20}