pub struct ActionsRepositoryPermissions {
pub enabled: bool,
pub allowed_actions: Option<AllowedActions>,
pub selected_actions_url: Option<String>,
}
Fields§
§enabled: bool
Whether GitHub Actions is enabled on the repository.
allowed_actions: Option<AllowedActions>
§selected_actions_url: Option<String>
The API URL to use to get or set the actions and reusable workflows that are allowed to run, when allowed_actions
is set to selected
.
Implementations§
Source§impl ActionsRepositoryPermissions
impl ActionsRepositoryPermissions
pub fn new(enabled: bool) -> ActionsRepositoryPermissions
Trait Implementations§
Source§impl Clone for ActionsRepositoryPermissions
impl Clone for ActionsRepositoryPermissions
Source§fn clone(&self) -> ActionsRepositoryPermissions
fn clone(&self) -> ActionsRepositoryPermissions
Returns a duplicate 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 ActionsRepositoryPermissions
impl Debug for ActionsRepositoryPermissions
Source§impl Default for ActionsRepositoryPermissions
impl Default for ActionsRepositoryPermissions
Source§fn default() -> ActionsRepositoryPermissions
fn default() -> ActionsRepositoryPermissions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ActionsRepositoryPermissions
impl<'de> Deserialize<'de> for ActionsRepositoryPermissions
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
Source§impl PartialEq for ActionsRepositoryPermissions
impl PartialEq for ActionsRepositoryPermissions
Source§fn eq(&self, other: &ActionsRepositoryPermissions) -> bool
fn eq(&self, other: &ActionsRepositoryPermissions) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ActionsRepositoryPermissions
Auto Trait Implementations§
impl Freeze for ActionsRepositoryPermissions
impl RefUnwindSafe for ActionsRepositoryPermissions
impl Send for ActionsRepositoryPermissions
impl Sync for ActionsRepositoryPermissions
impl Unpin for ActionsRepositoryPermissions
impl UnwindSafe for ActionsRepositoryPermissions
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