pub enum PayloadForm {
Raw(String),
Structured(Value),
}Expand description
The two payload shapes (ADR-0004: raw text is primary; structured is reserved for future non-hurl engines).
Variants§
Raw(String)
Raw engine text (hurl: block scalar), ${…} still unresolved.
Structured(Value)
Structured payload for future engines.
Trait Implementations§
Source§impl Clone for PayloadForm
impl Clone for PayloadForm
Source§fn clone(&self) -> PayloadForm
fn clone(&self) -> PayloadForm
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 moreAuto Trait Implementations§
impl Freeze for PayloadForm
impl RefUnwindSafe for PayloadForm
impl Send for PayloadForm
impl Sync for PayloadForm
impl Unpin for PayloadForm
impl UnsafeUnpin for PayloadForm
impl UnwindSafe for PayloadForm
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