pub struct Client { /* private fields */ }
Expand description
Entrypoint for interacting with the API client.
Implementations§
source§impl Client
impl Client
pub fn new<A, C>(agent: A, credentials: C) -> Result<Self, ClientError>where A: Into<String>, C: Into<Option<Credentials>>,
pub fn custom<A, CR>( agent: A, credentials: CR, http: ClientWithMiddleware, http_cache: BoxedHttpCache ) -> Selfwhere A: Into<String>, CR: Into<Option<Credentials>>,
sourcepub fn with_host_override<H>(&mut self, host: H) -> &mut Selfwhere
H: ToString,
pub fn with_host_override<H>(&mut self, host: H) -> &mut Selfwhere H: ToString,
Override the host for all endpoins in the client.
sourcepub fn remove_host_override(&mut self) -> &mut Self
pub fn remove_host_override(&mut self) -> &mut Self
Disables the global host override for the client.
pub fn get_host_override(&self) -> Option<&str>
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§
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