Struct ic_cdk::api::management_canister::http_request::TransformContext
source · pub struct TransformContext {
pub function: TransformFunc,
pub context: Vec<u8>,
}
Expand description
Type used for encoding/decoding:
record { function : func (record {response : http_response; context : blob}) -> (http_response) query; context : blob; }
Fields§
§function: TransformFunc
Reference function with signature: func (record {response : http_response; context : blob}) -> (http_response) query;
.
context: Vec<u8>
Context to be passed to transform
function to transform HTTP response for consensus
Implementations§
Trait Implementations§
source§impl CandidType for TransformContext
impl CandidType for TransformContext
source§impl Clone for TransformContext
impl Clone for TransformContext
source§fn clone(&self) -> TransformContext
fn clone(&self) -> TransformContext
Returns a copy of the value. Read more
1.0.0 · 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 TransformContext
impl Debug for TransformContext
source§impl<'de> Deserialize<'de> for TransformContext
impl<'de> Deserialize<'de> for TransformContext
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for TransformContext
impl PartialEq for TransformContext
impl Eq for TransformContext
impl StructuralPartialEq for TransformContext
Auto Trait Implementations§
impl Freeze for TransformContext
impl RefUnwindSafe for TransformContext
impl Send for TransformContext
impl Sync for TransformContext
impl Unpin for TransformContext
impl UnwindSafe for TransformContext
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)