pub struct PermissionsResponse {
enabled: bool,
allowed_actions: Option<ActionScope>,
sha_pinning_required: bool,
}Expand description
GitHub omits allowed_actions when Actions is disabled, which reads as the
default of all.
Fields§
§enabled: bool§allowed_actions: Option<ActionScope>§sha_pinning_required: boolTrait Implementations§
Source§impl Clone for PermissionsResponse
impl Clone for PermissionsResponse
Source§fn clone(&self) -> PermissionsResponse
fn clone(&self) -> PermissionsResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PermissionsResponse
Source§impl Debug for PermissionsResponse
impl Debug for PermissionsResponse
Source§impl<'ʄ> Facet<'ʄ> for PermissionsResponse
impl<'ʄ> Facet<'ʄ> for PermissionsResponse
Source§impl From<PermissionsResponse> for Permissions
impl From<PermissionsResponse> for Permissions
Source§fn from(response: PermissionsResponse) -> Self
fn from(response: PermissionsResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PermissionsResponse
impl RefUnwindSafe for PermissionsResponse
impl Send for PermissionsResponse
impl Sync for PermissionsResponse
impl Unpin for PermissionsResponse
impl UnsafeUnpin for PermissionsResponse
impl UnwindSafe for PermissionsResponse
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