pub struct Permissions {
pub actions: Option<Level>,
pub contents: Option<Level>,
pub issues: Option<Level>,
pub pull_requests: Option<Level>,
pub deployments: Option<Level>,
pub checks: Option<Level>,
pub statuses: Option<Level>,
pub packages: Option<Level>,
pub pages: Option<Level>,
pub id_token: Option<Level>,
}
Expand description
Represents permissions for the GITHUB_TOKEN
.
Fields§
§actions: Option<Level>
Permissions for actions.
contents: Option<Level>
Permissions for repository contents.
issues: Option<Level>
Permissions for issues.
pull_requests: Option<Level>
Permissions for pull requests.
deployments: Option<Level>
Permissions for deployments.
checks: Option<Level>
Permissions for checks.
statuses: Option<Level>
Permissions for statuses.
packages: Option<Level>
Permissions for packages.
pages: Option<Level>
Permissions for pages.
id_token: Option<Level>
Permissions for ID tokens.
Implementations§
Source§impl Permissions
impl Permissions
Sourcepub fn actions(self, value: impl Into<Level>) -> Permissions
pub fn actions(self, value: impl Into<Level>) -> Permissions
Sets the actions
field of this struct.
Sourcepub fn contents(self, value: impl Into<Level>) -> Permissions
pub fn contents(self, value: impl Into<Level>) -> Permissions
Sets the contents
field of this struct.
Sourcepub fn issues(self, value: impl Into<Level>) -> Permissions
pub fn issues(self, value: impl Into<Level>) -> Permissions
Sets the issues
field of this struct.
Sourcepub fn pull_requests(self, value: impl Into<Level>) -> Permissions
pub fn pull_requests(self, value: impl Into<Level>) -> Permissions
Sets the pull_requests
field of this struct.
Sourcepub fn deployments(self, value: impl Into<Level>) -> Permissions
pub fn deployments(self, value: impl Into<Level>) -> Permissions
Sets the deployments
field of this struct.
Sourcepub fn checks(self, value: impl Into<Level>) -> Permissions
pub fn checks(self, value: impl Into<Level>) -> Permissions
Sets the checks
field of this struct.
Sourcepub fn statuses(self, value: impl Into<Level>) -> Permissions
pub fn statuses(self, value: impl Into<Level>) -> Permissions
Sets the statuses
field of this struct.
Sourcepub fn packages(self, value: impl Into<Level>) -> Permissions
pub fn packages(self, value: impl Into<Level>) -> Permissions
Sets the packages
field of this struct.
Trait Implementations§
Source§impl Clone for Permissions
impl Clone for Permissions
Source§fn clone(&self) -> Permissions
fn clone(&self) -> Permissions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Permissions
impl Debug for Permissions
Source§impl Default for Permissions
impl Default for Permissions
Source§fn default() -> Permissions
fn default() -> Permissions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Permissions
impl<'de> Deserialize<'de> for Permissions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Permissions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Permissions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Permissions
impl PartialEq for Permissions
Source§impl Serialize for Permissions
impl Serialize for Permissions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Permissions
impl StructuralPartialEq for Permissions
Auto Trait Implementations§
impl Freeze for Permissions
impl RefUnwindSafe for Permissions
impl Send for Permissions
impl Sync for Permissions
impl Unpin for Permissions
impl UnwindSafe for Permissions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.