pub struct GithubAppWebhookConfig {
pub app_id: String,
pub webhook_secret: Option<String>,
pub webhook_secret_env: Option<String>,
pub private_key_file: String,
pub webhook_path: String,
pub api_base: Option<String>,
}Expand description
Operator-supplied JSON configuration loaded via arks serve --github-app-config <path>.
Fields§
§app_id: String§webhook_secret: Option<String>§webhook_secret_env: Option<String>§private_key_file: String§webhook_path: String§api_base: Option<String>Implementations§
Source§impl GithubAppWebhookConfig
impl GithubAppWebhookConfig
Sourcepub fn load_from_path(path: &Path) -> Result<ValidatedGithubAppConfig, String>
pub fn load_from_path(path: &Path) -> Result<ValidatedGithubAppConfig, String>
Load and validate a JSON config file. Fails closed on missing secret or key file.
pub fn validate(self) -> Result<ValidatedGithubAppConfig, String>
Trait Implementations§
Source§impl Clone for GithubAppWebhookConfig
impl Clone for GithubAppWebhookConfig
Source§impl Debug for GithubAppWebhookConfig
impl Debug for GithubAppWebhookConfig
Source§impl<'de> Deserialize<'de> for GithubAppWebhookConfig
impl<'de> Deserialize<'de> for GithubAppWebhookConfig
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 Forget for GithubAppWebhookConfig
impl Freeze for GithubAppWebhookConfig
impl Move for GithubAppWebhookConfig
impl RefUnwindSafe for GithubAppWebhookConfig
impl Send for GithubAppWebhookConfigwhere
RawVecInner: Send,
impl Sync for GithubAppWebhookConfigwhere
RawVecInner: Sync,
impl Unpin for GithubAppWebhookConfig
impl UnsafeUnpin for GithubAppWebhookConfig
impl UnwindSafe for GithubAppWebhookConfigwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
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