pub struct Client { /* private fields */ }
Expand description
Entrypoint for interacting with the API client.
Implementations
sourceimpl Client
impl Client
pub fn new<A, C>(agent: A, credentials: C) -> Result<Self> where
A: Into<String>,
C: Into<Option<Credentials>>,
pub fn host<H, A, C>(host: H, agent: A, credentials: C) -> Result<Self> where
H: Into<String>,
A: Into<String>,
C: Into<Option<Credentials>>,
pub fn custom<H, A, CR>(
host: H,
agent: A,
credentials: CR,
http: ClientWithMiddleware,
http_cache: BoxedHttpCache
) -> Self where
H: Into<String>,
A: Into<String>,
CR: Into<Option<Credentials>>,
pub fn set_credentials<CR>(&mut self, credentials: CR) where
CR: Into<Option<Credentials>>,
sourcepub fn activity(&self) -> Activity
pub fn activity(&self) -> Activity
Activity APIs provide access to notifications, subscriptions, and timelines.
sourcepub fn code_scanning(&self) -> CodeScanning
pub fn code_scanning(&self) -> CodeScanning
Retrieve code scanning alerts from a repository.
sourcepub fn codes_of_conduct(&self) -> CodesOfConduct
pub fn codes_of_conduct(&self) -> CodesOfConduct
Insight into codes of conduct for your communities.
sourcepub fn enterprise_admin(&self) -> EnterpriseAdmin
pub fn enterprise_admin(&self) -> EnterpriseAdmin
Administer a GitHub enterprise.
sourcepub fn interactions(&self) -> Interactions
pub fn interactions(&self) -> Interactions
Owner or admin management of users interactions.
sourcepub fn migrations(&self) -> Migrations
pub fn migrations(&self) -> Migrations
Move projects to or from GitHub.
Manage access of OAuth applications.
sourcepub fn rate_limit(&self) -> RateLimit
pub fn rate_limit(&self) -> RateLimit
Check your current rate limit status.
sourcepub fn scim(&self) -> Scim
pub fn scim(&self) -> Scim
Provisioning of GitHub organization membership for SCIM-enabled providers.
sourcepub fn secret_scanning(&self) -> SecretScanning
pub fn secret_scanning(&self) -> SecretScanning
Retrieve secret scanning alerts from a repository.
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> FutureExt for T
impl<T> FutureExt for T
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more