pub struct GitHubLabelApiResponse {
pub name: String,
pub color: Option<String>,
pub description: Option<String>,
}Expand description
GitHub API 标签响应结构(REST 形状)。
用于解析 gh api 返回的 Issue 对象中的标签。REST 标签的 description
在无描述时为 null,color 为不带 # 前缀的十六进制字符串。
Fields§
§name: String§color: Option<String>§description: Option<String>Trait Implementations§
Source§impl Clone for GitHubLabelApiResponse
impl Clone for GitHubLabelApiResponse
Source§fn clone(&self) -> GitHubLabelApiResponse
fn clone(&self) -> GitHubLabelApiResponse
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 GitHubLabelApiResponse
impl Debug for GitHubLabelApiResponse
Source§impl<'de> Deserialize<'de> for GitHubLabelApiResponse
impl<'de> Deserialize<'de> for GitHubLabelApiResponse
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 From<GitHubLabelApiResponse> for Label
impl From<GitHubLabelApiResponse> for Label
Source§fn from(api: GitHubLabelApiResponse) -> Self
fn from(api: GitHubLabelApiResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GitHubLabelApiResponse
impl RefUnwindSafe for GitHubLabelApiResponse
impl Send for GitHubLabelApiResponse
impl Sync for GitHubLabelApiResponse
impl Unpin for GitHubLabelApiResponse
impl UnsafeUnpin for GitHubLabelApiResponse
impl UnwindSafe for GitHubLabelApiResponse
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