pub struct RoleConfig {
pub target: String,
pub installation_id: u64,
pub repositories: Vec<String>,
pub permissions: BTreeMap<String, String>,
}Expand description
What one consumer may mint. Both repositories and permissions narrow the
token down from what the installation was granted — they can never widen
it, so the App’s own permissions remain the ceiling.
Fields§
§target: StringWhich github/config/{name} document to authenticate with.
installation_id: u64§repositories: Vec<String>Repository names (not full owner/repo paths). Empty means every
repository the App is installed on — rarely what you want.
permissions: BTreeMap<String, String>e.g. {"contents": "read", "pull_requests": "write"}. Empty means the
installation’s full permission set.
Trait Implementations§
Source§impl Clone for RoleConfig
impl Clone for RoleConfig
Source§impl Debug for RoleConfig
impl Debug for RoleConfig
Source§impl<'de> Deserialize<'de> for RoleConfig
impl<'de> Deserialize<'de> for RoleConfig
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 RoleConfig
impl RefUnwindSafe for RoleConfig
impl Send for RoleConfig
impl Sync for RoleConfig
impl Unpin for RoleConfig
impl UnsafeUnpin for RoleConfig
impl UnwindSafe for RoleConfig
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