pub struct ForgejoConfig {
pub rooms: HashMap<String, String>,
pub feed_interval: u64,
pub objects_count: u16,
pub instances: HashMap<String, ForgejoInstance>,
pub keywords_pr_new: Vec<String>,
pub keywords_pr_old: Vec<String>,
pub keywords_issue_new: Vec<String>,
pub keywords_issue_old: Vec<String>,
}Expand description
General module configuration
Fields§
§rooms: HashMap<String, String>Instance to act upon in a given room. Special key “default” signifies the default instance if none is configured for a given room.
feed_interval: u64How often the feeds should be checked, in minutes.
objects_count: u16How many issues/PRs should be returned on active queries
instances: HashMap<String, ForgejoInstance>Map of Forgejo instances to query and observe
keywords_pr_new: Vec<String>Keywords for displaying list of latest open pull requests.
keywords_pr_old: Vec<String>Keywords for displaying list of oldest open pull requests.
keywords_issue_new: Vec<String>Keywords for displaying list of latest open issues.
keywords_issue_old: Vec<String>Keywords for displaying list of oldest open issues.
Trait Implementations§
Source§impl Clone for ForgejoConfig
impl Clone for ForgejoConfig
Source§fn clone(&self) -> ForgejoConfig
fn clone(&self) -> ForgejoConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ForgejoConfig
impl Debug for ForgejoConfig
Source§impl<'de> Deserialize<'de> for ForgejoConfig
impl<'de> Deserialize<'de> for ForgejoConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ForgejoConfig
impl RefUnwindSafe for ForgejoConfig
impl Send for ForgejoConfig
impl Sync for ForgejoConfig
impl Unpin for ForgejoConfig
impl UnsafeUnpin for ForgejoConfig
impl UnwindSafe for ForgejoConfig
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
impl<T> AsyncTraitDeps for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> CloneAny for T
impl<T> CloneAnySend for T
impl<T> CloneAnySendSync for T
impl<T> CloneAnySync for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more