#[non_exhaustive]pub struct ManifestParams {
pub name: String,
pub url: String,
pub webhook_url: String,
pub redirect_url: String,
pub callback_urls: Vec<String>,
pub setup_url: Option<String>,
pub description: Option<String>,
}Expand description
Inputs to the manifest.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringApp name, unique on GitHub (e.g. acme-vgi-bridge).
url: StringHomepage shown on the App’s page.
webhook_url: StringWhere GitHub delivers webhooks (the bridge).
redirect_url: StringWhere GitHub sends the admin after registration, with code.
callback_urls: Vec<String>OAuth callback URLs (device flow needs none, but GitHub wants one).
setup_url: Option<String>Where GitHub sends the admin after an install, with
installation_id and the bind state (§4.1 step 3).
description: Option<String>Optional description.
Implementations§
Source§impl ManifestParams
impl ManifestParams
Sourcepub fn new(
name: impl Into<String>,
url: impl Into<String>,
webhook_url: impl Into<String>,
redirect_url: impl Into<String>,
) -> Self
pub fn new( name: impl Into<String>, url: impl Into<String>, webhook_url: impl Into<String>, redirect_url: impl Into<String>, ) -> Self
Parameters with one callback URL and no setup URL or description.
Sourcepub fn with_setup_url(self, url: impl Into<String>) -> Self
pub fn with_setup_url(self, url: impl Into<String>) -> Self
Set the post-install setup URL.
Trait Implementations§
Source§impl Clone for ManifestParams
impl Clone for ManifestParams
Auto Trait Implementations§
impl Freeze for ManifestParams
impl RefUnwindSafe for ManifestParams
impl Send for ManifestParams
impl Sync for ManifestParams
impl Unpin for ManifestParams
impl UnsafeUnpin for ManifestParams
impl UnwindSafe for ManifestParams
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