[][src]Enum github_types::Preview

pub enum Preview {
    Wyandotte,
    BarredRock,
    AntMan,
    SquirrelGirl,
    Mockingbird,
    MisterFantastic,
    MachineMan,
    Inertia,
    Cloak,
    BlackPanther,
    GiantSentryFist,
    Mercy,
    ScarletWitch,
    Hellcat,
    Nightshade,
    SailorV,
    Dazzler,
    Echo,
    Symmetra,
    Zzzax,
    LukeCage,
    Hagar,
    Antiope,
    Starfox,
    Fury,
    Flash,
    Surtur,
    Corsair,
    Sombra,
    ShadowCat,
    Switcheroo,
    Groot,
    Gambit,
}

API previews.

See: https://developer.github.com/v3/previews/

Variants

Wyandotte

Allows you to download repositories from your GitHub user or organization account to review, backup, and migrate data to GitHub Enterprise Server.

BarredRock

Import source repositories to GitHub with the API version of the GitHub Importer.

AntMan

Exercise greater control over deployments with more information and finer granularity.

SquirrelGirl

Manage reactions for commits, issues, and comments.

Mockingbird

Get a list of events for an issue or pull request.

MisterFantastic

Get more information about your GitHub Pages site.

MachineMan

Manage integrations through the API.

Inertia

Manage projects.

Cloak

Search commits.

BlackPanther

Retrieve community profile metrics (also known as community health) for any public repository.

GiantSentryFist

Users can block other users. Organizations can block users, too.

Mercy

View a list of repository topics in calls that return repository results.

ScarletWitch

View all codes of conduct or get which code of conduct a repository has currently.

Hellcat

Include nested team content in team payloads.

Nightshade

Transfer a repository to an organization or user.

SailorV

You can now add a reason when you lock an issue.

Dazzler

You can now use the API to invite new users to an organization by creating an organization invitation.

Echo

You can now use the API to manage team discussions and team discussion comments.

Symmetra

You can now use emoji in label names, add descriptions to labels, and search for labels in a repository.

Zzzax

You can now use the API to manage the setting for requiring signed commits on protected branches.

LukeCage

You can now require multiple approving reviews for a pull request using the API.

Hagar

Retrieve information from someone's hovercard.

Antiope

Allows a GitHub App to run external checks on a repository's code. See the Check runs and Check suites APIs for more details.

Starfox

The REST API v3 responses for issue events and issue timeline events now return the project_card field for project-related events.

Fury

GitHub App Manifests allow people to create preconfigured GitHub Apps. See "Creating GitHub Apps from a manifest" for more details.

Flash

You can now update the environment of a deployment status and use the in_progress and queued states. When you create deployment statuses, you can now use the auto_inactive parameter to mark old production deployments as inactive.

Surtur

You can now configure whether organization members can create repositories and which types of repositories they can create. See "Edit an organization" for more details.

Corsair

You can now provide more information in GitHub for URLs that link to registered domains by using the Content Attachments API. See "Using content attachments" for more details.

Sombra

Allows you to temporarily restrict interactions, such as commenting, opening issues, and creating pull requests, for GitHub repositories or organizations. When enabled, only the specified group of GitHub users will be able to participate in these interactions. See the Repository interactions and Organization interactions APIs for more details.

ShadowCat

You can use the Draft Pull Requests API and its pull request endpoints to see whether a pull request is in draft state. To learn more about draft pull requests, see "About pull requests" in the GitHub Help documentation.

Switcheroo

You can use the new endpoints in the Pages API to enable or disable Pages. To learn more about Pages, see "GitHub Pages Basics" in the GitHub Help documentation.

Groot

You can use the new endpoints in the Commits API to list branches or pull requests for a commit.

Gambit

Owners of GitHub Apps can now uninstall an app using the Apps API.

Methods

impl Preview[src]

pub fn name(self) -> &'static str[src]

Returns the kebab-case name of the preview.

pub fn media_type(self) -> String[src]

Returns the media type for the preview. This can be used for the Accept header in requests.

Trait Implementations

impl PartialOrd<Preview> for Preview[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Preview[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl Eq for Preview[src]

impl Copy for Preview[src]

impl Clone for Preview[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<Preview> for Preview[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Hash for Preview[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Display for Preview[src]

impl Debug for Preview[src]

Auto Trait Implementations

impl Send for Preview

impl Sync for Preview

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]