pub struct VerifiedResponse {
pub status_code: Option<u16>,
pub headers: Vec<(String, String)>,
pub body: Vec<u8>,
}Expand description
Represents a certified Response from the Internet Computer.
Fields§
§status_code: Option<u16>The HTTP status code of the response, i.e. 200.
headers: Vec<(String, String)>The HTTP headers of the request, i.e. [[“Ic-Certificate”, “certificate=:2dn3o2R0cmVlgw=:, tree=:2dn3gwGDA:”]]
body: Vec<u8>The body of the request as a candid decoded blob, i.e. [60, 33, 100, 111, 99]
Trait Implementations§
Source§impl Debug for VerifiedResponse
impl Debug for VerifiedResponse
Source§impl PartialEq for VerifiedResponse
impl PartialEq for VerifiedResponse
impl Eq for VerifiedResponse
impl StructuralPartialEq for VerifiedResponse
Auto Trait Implementations§
impl Freeze for VerifiedResponse
impl RefUnwindSafe for VerifiedResponse
impl Send for VerifiedResponse
impl Sync for VerifiedResponse
impl Unpin for VerifiedResponse
impl UnwindSafe for VerifiedResponse
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