pub struct ApiResponse {
pub status: u16,
pub headers: BTreeMap<String, String>,
pub body: String,
}Expand description
What gh api -i printed, taken apart.
Fields§
§status: u16§headers: BTreeMap<String, String>Header names lowercased, values trimmed.
body: StringTrait Implementations§
Source§impl Clone for ApiResponse
impl Clone for ApiResponse
Source§impl Debug for ApiResponse
impl Debug for ApiResponse
Source§impl Default for ApiResponse
impl Default for ApiResponse
impl Eq for ApiResponse
Source§impl PartialEq for ApiResponse
impl PartialEq for ApiResponse
impl StructuralPartialEq for ApiResponse
Auto Trait Implementations§
impl Freeze for ApiResponse
impl RefUnwindSafe for ApiResponse
impl Send for ApiResponse
impl Sync for ApiResponse
impl Unpin for ApiResponse
impl UnsafeUnpin for ApiResponse
impl UnwindSafe for ApiResponse
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> 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.