pub struct GitHubApiConfig {
pub base_url: Url,
pub version: ApiVersion,
pub accept_header: AcceptHeader,
}Expand description
Configuration for GitHub API interactions.
Fields§
§base_url: UrlThe base URL for the GitHub API.
version: ApiVersionThe specific GitHub API version to use.
accept_header: AcceptHeaderThe value of the Accept header.
Trait Implementations§
Source§impl Clone for GitHubApiConfig
impl Clone for GitHubApiConfig
Source§fn clone(&self) -> GitHubApiConfig
fn clone(&self) -> GitHubApiConfig
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 GitHubApiConfig
impl Debug for GitHubApiConfig
Source§impl<'de> Deserialize<'de> for GitHubApiConfig
impl<'de> Deserialize<'de> for GitHubApiConfig
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 Validate for GitHubApiConfig
impl Validate for GitHubApiConfig
Source§impl<'v_a> ValidateArgs<'v_a> for GitHubApiConfig
impl<'v_a> ValidateArgs<'v_a> for GitHubApiConfig
Auto Trait Implementations§
impl Freeze for GitHubApiConfig
impl RefUnwindSafe for GitHubApiConfig
impl Send for GitHubApiConfig
impl Sync for GitHubApiConfig
impl Unpin for GitHubApiConfig
impl UnsafeUnpin for GitHubApiConfig
impl UnwindSafe for GitHubApiConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more