Skip to main content

ActionsGroup

Trait ActionsGroup 

Source
pub trait ActionsGroup:
    GroupType
    + for<'a> Facet<'a>
    + Send
    + Sync {
    type Wire: for<'a> Facet<'a> + Into<Self>;

    const ROUTE: &'static str;
    const UNAVAILABLE_STATUS: Option<u16> = None;

    // Provided method
    fn body(&self) -> String { ... }
}
Expand description

An Actions settings group that has its own route.

The group is read as its wire type and written as itself.

Required Associated Constants§

Source

const ROUTE: &'static str

The route below the repository.

Provided Associated Constants§

Source

const UNAVAILABLE_STATUS: Option<u16> = None

The status that reads as an unavailable group.

Required Associated Types§

Source

type Wire: for<'a> Facet<'a> + Into<Self>

What GitHub answers with.

Provided Methods§

Source

fn body(&self) -> String

The body of a write.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ActionsGroup for Access

Source§

const ROUTE: &'static str = "actions/permissions/access"

Source§

type Wire = AccessResponse

Source§

impl ActionsGroup for AllowList

Source§

const ROUTE: &'static str = "actions/permissions/selected-actions"

Source§

const UNAVAILABLE_STATUS: Option<u16>

Source§

type Wire = AllowListResponse

Source§

impl ActionsGroup for ArtifactAndLogRetention

Source§

const ROUTE: &'static str = "actions/permissions/artifact-and-log-retention"

Source§

type Wire = RetentionResponse

Source§

impl ActionsGroup for ForkPrContributorApproval

Source§

const ROUTE: &'static str = "actions/permissions/fork-pr-contributor-approval"

Source§

type Wire = ContributorApprovalResponse

Source§

impl ActionsGroup for ForkPrWorkflowsPrivateRepos

Source§

const ROUTE: &'static str = "actions/permissions/fork-pr-workflows-private-repos"

Source§

const UNAVAILABLE_STATUS: Option<u16>

Source§

type Wire = ForkWorkflowsResponse

Source§

impl ActionsGroup for OidcSubject

Source§

const ROUTE: &'static str = "actions/oidc/customization/sub"

Source§

type Wire = OidcSubjectResponse

Source§

impl ActionsGroup for Permissions

Source§

const ROUTE: &'static str = "actions/permissions"

Source§

type Wire = PermissionsResponse

Source§

impl ActionsGroup for Workflow

Source§

const ROUTE: &'static str = "actions/permissions/workflow"

Source§

type Wire = WorkflowResponse