pub struct WebCapture {
pub retrieval_uri: RetrievalUri,
pub content_id: ContentId,
pub body: Vec<u8>,
pub exchange: WebExchange,
}Expand description
Raw retrieved bytes with their own content identity.
Fields§
§retrieval_uri: RetrievalUri§content_id: ContentId§body: Vec<u8>§exchange: WebExchangeImplementations§
Source§impl WebCapture
impl WebCapture
pub fn checked( retrieval_uri: RetrievalUri, content_id: ContentId, body: Vec<u8>, exchange: WebExchange, limits: DecodeLimits, ) -> Result<Self, WebRecordError>
Trait Implementations§
Source§impl Clone for WebCapture
impl Clone for WebCapture
Source§fn clone(&self) -> WebCapture
fn clone(&self) -> WebCapture
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 WebCapture
impl Debug for WebCapture
impl Eq for WebCapture
Source§impl PartialEq for WebCapture
impl PartialEq for WebCapture
impl StructuralPartialEq for WebCapture
Auto Trait Implementations§
impl Freeze for WebCapture
impl RefUnwindSafe for WebCapture
impl Send for WebCapture
impl Sync for WebCapture
impl Unpin for WebCapture
impl UnsafeUnpin for WebCapture
impl UnwindSafe for WebCapture
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