pub struct GitHubHost(/* private fields */);
Expand description
API endpoint for the client
The GitHub client can be used with different GitHub instances, for example a self-hosted
GitHub Enterprise Server. The GitHubHost
sets the base URL that the client will use.
Implementations§
Trait Implementations§
Source§impl Clone for GitHubHost
impl Clone for GitHubHost
Source§fn clone(&self) -> GitHubHost
fn clone(&self) -> GitHubHost
Returns a duplicate of the value. Read more
1.0.0 · 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 GitHubHost
impl Debug for GitHubHost
Source§impl<'de> Deserialize<'de> for GitHubHost
impl<'de> Deserialize<'de> for GitHubHost
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for GitHubHost
impl Display for GitHubHost
Source§impl From<&str> for GitHubHost
impl From<&str> for GitHubHost
Source§fn from(string: &str) -> GitHubHost
fn from(string: &str) -> GitHubHost
Converts to this type from the input type.
Source§impl From<String> for GitHubHost
impl From<String> for GitHubHost
Source§fn from(string: String) -> GitHubHost
fn from(string: String) -> GitHubHost
Converts to this type from the input type.
Source§impl Hash for GitHubHost
impl Hash for GitHubHost
Source§impl Ord for GitHubHost
impl Ord for GitHubHost
Source§fn cmp(&self, other: &GitHubHost) -> Ordering
fn cmp(&self, other: &GitHubHost) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GitHubHost
impl PartialEq for GitHubHost
Source§impl PartialOrd for GitHubHost
impl PartialOrd for GitHubHost
Source§impl Serialize for GitHubHost
impl Serialize for GitHubHost
impl Eq for GitHubHost
impl StructuralPartialEq for GitHubHost
Auto Trait Implementations§
impl Freeze for GitHubHost
impl RefUnwindSafe for GitHubHost
impl Send for GitHubHost
impl Sync for GitHubHost
impl Unpin for GitHubHost
impl UnwindSafe for GitHubHost
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.