pub struct CatalogTransportResponse {
pub status: u16,
pub content_type: Option<String>,
pub content_encoding: Option<String>,
pub content_length: Option<u64>,
pub etag: Option<String>,
pub body: CatalogBodyStream,
}Expand description
Streamed transport response. Tests inject this without live network access.
Fields§
§status: u16§content_type: Option<String>§content_encoding: Option<String>§content_length: Option<u64>§etag: Option<String>§body: CatalogBodyStreamImplementations§
Source§impl CatalogTransportResponse
impl CatalogTransportResponse
pub fn from_bytes(status: u16, bytes: Vec<u8>) -> Self
pub fn not_modified() -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for CatalogTransportResponse
impl !Sync for CatalogTransportResponse
impl !UnwindSafe for CatalogTransportResponse
impl Freeze for CatalogTransportResponse
impl Send for CatalogTransportResponse
impl Unpin for CatalogTransportResponse
impl UnsafeUnpin for CatalogTransportResponse
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