pub struct ActionsGetDefaultWorkflowPermissions {
pub default_workflow_permissions: ActionsDefaultWorkflowPermissions,
pub can_approve_pull_request_reviews: bool,
}
Fields§
§default_workflow_permissions: ActionsDefaultWorkflowPermissions
§can_approve_pull_request_reviews: bool
Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.
Implementations§
Source§impl ActionsGetDefaultWorkflowPermissions
impl ActionsGetDefaultWorkflowPermissions
pub fn new( default_workflow_permissions: ActionsDefaultWorkflowPermissions, can_approve_pull_request_reviews: bool, ) -> ActionsGetDefaultWorkflowPermissions
Trait Implementations§
Source§impl Clone for ActionsGetDefaultWorkflowPermissions
impl Clone for ActionsGetDefaultWorkflowPermissions
Source§fn clone(&self) -> ActionsGetDefaultWorkflowPermissions
fn clone(&self) -> ActionsGetDefaultWorkflowPermissions
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 Default for ActionsGetDefaultWorkflowPermissions
impl Default for ActionsGetDefaultWorkflowPermissions
Source§fn default() -> ActionsGetDefaultWorkflowPermissions
fn default() -> ActionsGetDefaultWorkflowPermissions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ActionsGetDefaultWorkflowPermissions
impl<'de> Deserialize<'de> for ActionsGetDefaultWorkflowPermissions
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 ActionsGetDefaultWorkflowPermissions
impl PartialEq for ActionsGetDefaultWorkflowPermissions
Source§fn eq(&self, other: &ActionsGetDefaultWorkflowPermissions) -> bool
fn eq(&self, other: &ActionsGetDefaultWorkflowPermissions) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ActionsGetDefaultWorkflowPermissions
Auto Trait Implementations§
impl Freeze for ActionsGetDefaultWorkflowPermissions
impl RefUnwindSafe for ActionsGetDefaultWorkflowPermissions
impl Send for ActionsGetDefaultWorkflowPermissions
impl Sync for ActionsGetDefaultWorkflowPermissions
impl Unpin for ActionsGetDefaultWorkflowPermissions
impl UnwindSafe for ActionsGetDefaultWorkflowPermissions
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