pub enum GitHubScope {
Repository {
owner: String,
repo: String,
},
Organization {
name: String,
},
Global,
}Expand description
Scope for GitHub API calls — determines the endpoint prefix.
Variants§
Repository
Single repository: /repos/{owner}/{repo}/...
Organization
Organization-level: search with org: qualifier
Global
Global: search across all accessible resources
Trait Implementations§
Source§impl Clone for GitHubScope
impl Clone for GitHubScope
Source§fn clone(&self) -> GitHubScope
fn clone(&self) -> GitHubScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GitHubScope
impl Debug for GitHubScope
Source§impl<'de> Deserialize<'de> for GitHubScope
impl<'de> Deserialize<'de> for GitHubScope
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GitHubScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GitHubScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for GitHubScope
impl Serialize for GitHubScope
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for GitHubScope
impl RefUnwindSafe for GitHubScope
impl Send for GitHubScope
impl Sync for GitHubScope
impl Unpin for GitHubScope
impl UnsafeUnpin for GitHubScope
impl UnwindSafe for GitHubScope
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