Struct octorust::Client

source ·
pub struct Client { /* private fields */ }
Expand description

Entrypoint for interacting with the API client.

Implementations§

source§

impl Client

source

pub fn new<A, C>(agent: A, credentials: C) -> Result<Self, ClientError>where A: Into<String>, C: Into<Option<Credentials>>,

source

pub fn custom<A, CR>( agent: A, credentials: CR, http: ClientWithMiddleware, http_cache: BoxedHttpCache ) -> Selfwhere A: Into<String>, CR: Into<Option<Credentials>>,

source

pub fn with_host_override<H>(&mut self, host: H) -> &mut Selfwhere H: ToString,

Override the host for all endpoins in the client.

source

pub fn remove_host_override(&mut self) -> &mut Self

Disables the global host override for the client.

source

pub fn get_host_override(&self) -> Option<&str>

source

pub fn set_credentials<CR>(&mut self, credentials: CR)where CR: Into<Option<Credentials>>,

source

pub fn actions(&self) -> Actions

Endpoints to manage GitHub Actions using the REST API.

source

pub fn activity(&self) -> Activity

Activity APIs provide access to notifications, subscriptions, and timelines.

source

pub fn apps(&self) -> Apps

Information for integrations and installations.

source

pub fn billing(&self) -> Billing

Monitor charges and usage from Actions and Packages.

source

pub fn checks(&self) -> Checks

Rich interactions with checks run by your integrations.

source

pub fn code_scanning(&self) -> CodeScanning

Retrieve code scanning alerts from a repository.

source

pub fn codes_of_conduct(&self) -> CodesOfConduct

Insight into codes of conduct for your communities.

source

pub fn emojis(&self) -> Emojis

List emojis available to use on GitHub.

source

pub fn enterprise_admin(&self) -> EnterpriseAdmin

Administer a GitHub enterprise.

source

pub fn gists(&self) -> Gists

View, modify your gists.

source

pub fn git(&self) -> Git

Raw Git functionality.

source

pub fn gitignore(&self) -> Gitignore

View gitignore templates.

source

pub fn interactions(&self) -> Interactions

Owner or admin management of users interactions.

source

pub fn issues(&self) -> Issues

Interact with GitHub Issues.

source

pub fn licenses(&self) -> Licenses

View various OSS licenses.

source

pub fn markdown(&self) -> Markdown

Render Github flavored markdown.

source

pub fn meta(&self) -> Meta

Endpoints that give information about the API.

source

pub fn migrations(&self) -> Migrations

Move projects to or from GitHub.

source

pub fn oauth_authorizations(&self) -> OauthAuthorizations

Manage access of OAuth applications.

source

pub fn orgs(&self) -> Orgs

Interact with GitHub Orgs.

source

pub fn packages(&self) -> Packages

Manage packages for authenticated users and organizations.

source

pub fn projects(&self) -> Projects

Interact with GitHub Projects.

source

pub fn pulls(&self) -> Pulls

Interact with GitHub Pull Requests.

source

pub fn rate_limit(&self) -> RateLimit

Check your current rate limit status.

source

pub fn reactions(&self) -> Reactions

Interact with reactions to various GitHub entities.

source

pub fn repos(&self) -> Repos

Interact with GitHub Repos.

source

pub fn scim(&self) -> Scim

Provisioning of GitHub organization membership for SCIM-enabled providers.

source

pub fn search(&self) -> Search

Look for stuff on GitHub.

source

pub fn secret_scanning(&self) -> SecretScanning

Retrieve secret scanning alerts from a repository.

source

pub fn teams(&self) -> Teams

Interact with GitHub Teams.

source

pub fn users(&self) -> Users

Interact with and view information about users and also current user.

Trait Implementations§

source§

impl Clone for Client

source§

fn clone(&self) -> Client

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl !UnwindSafe for Client

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more