pub struct ApiHttpResponse {
pub status_code: u16,
pub content_type: &'static str,
pub body: String,
pub deprecated: bool,
}Fields§
§status_code: u16§content_type: &'static str§body: String§deprecated: boolWhether this response was served through a deprecated route alias.
Set for the legacy /v1/graph links-network alias so the wire response
carries a deprecation marker in its metadata (an HTTP deprecation
header plus a successor link to the canonical /v1/network endpoint)
while the JSON payload stays byte-for-byte identical to the canonical one.
Trait Implementations§
Source§impl Clone for ApiHttpResponse
impl Clone for ApiHttpResponse
Source§fn clone(&self) -> ApiHttpResponse
fn clone(&self) -> ApiHttpResponse
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 ApiHttpResponse
impl Debug for ApiHttpResponse
impl Eq for ApiHttpResponse
Source§impl PartialEq for ApiHttpResponse
impl PartialEq for ApiHttpResponse
impl StructuralPartialEq for ApiHttpResponse
Auto Trait Implementations§
impl Freeze for ApiHttpResponse
impl RefUnwindSafe for ApiHttpResponse
impl Send for ApiHttpResponse
impl Sync for ApiHttpResponse
impl Unpin for ApiHttpResponse
impl UnsafeUnpin for ApiHttpResponse
impl UnwindSafe for ApiHttpResponse
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.