Skip to main content

jinxapi_github/v1_1_4/schema/
interaction_limit.rs

1/// Interaction Restrictions
2/// 
3/// Limit interactions to a specific type of user for a specified duration
4#[allow(non_snake_case)]
5#[derive(Clone, Eq, PartialEq, Debug, Default, ::serde::Serialize, ::serde::Deserialize)]
6pub struct InteractionLimit<'a> {
7    /// The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. Can be one of: `existing_users`, `contributors_only`, `collaborators_only`.
8    /// 
9    /// # Example
10    /// 
11    /// ```json
12    /// "collaborators_only"
13    /// ```
14    pub limit: ::std::borrow::Cow<'a, str>,
15
16    /// The duration of the interaction restriction. Can be one of: `one_day`, `three_days`, `one_week`, `one_month`, `six_months`. Default: `one_day`.
17    /// 
18    /// # Example
19    /// 
20    /// ```json
21    /// "one_month"
22    /// ```
23    #[serde(skip_serializing_if = "Option::is_none", default)]
24    pub expiry: ::std::option::Option<::std::borrow::Cow<'a, str>>,
25
26    #[serde(flatten)]
27    pub additionalProperties: ::std::collections::HashMap<::std::borrow::Cow<'a, str>, ::serde_json::value::Value>
28}