pub struct GithubApp {
pub app: String,
pub installation: u64,
pub key: String,
pub repositories: Vec<String>,
pub permissions: BTreeMap<String, String>,
pub refresh_before: Option<String>,
}Expand description
mint: { github-app: … }.
Fields§
§app: StringThe App’s client ID or numeric App ID: the JWT’s issuer.
installation: u64The installation the token is for.
key: StringThe App’s private key (PEM), absolute or under ~/; read by the proxy only.
repositories: Vec<String>The repositories (names, without the owner) the token may reach.
permissions: BTreeMap<String, String>The permissions the token gets, contents: read and so on.
refresh_before: Option<String>How long before the token expires a new one is minted; 10 minutes when unset.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GithubApp
impl<'de> Deserialize<'de> for GithubApp
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
impl Eq for GithubApp
impl StructuralPartialEq for GithubApp
Auto Trait Implementations§
impl Forget for GithubApp
impl Freeze for GithubApp
impl Move for GithubApp
impl RefUnwindSafe for GithubApp
impl Send for GithubApp
impl Sync for GithubApp
impl Unpin for GithubApp
impl UnsafeUnpin for GithubApp
impl UnwindSafe for GithubApp
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