pub struct WebCTESpec {
pub url: String,
pub format: Option<DataFormat>,
pub headers: Vec<(String, String)>,
pub cache_seconds: Option<u64>,
pub method: Option<HttpMethod>,
pub body: Option<String>,
pub json_path: Option<String>,
pub form_files: Vec<(String, String)>,
pub form_fields: Vec<(String, String)>,
pub template_vars: Vec<TemplateVar>,
}
Expand description
Specification for WEB CTEs
Fields§
§url: String
§format: Option<DataFormat>
§headers: Vec<(String, String)>
§cache_seconds: Option<u64>
§method: Option<HttpMethod>
§body: Option<String>
§json_path: Option<String>
§form_files: Vec<(String, String)>
§form_fields: Vec<(String, String)>
§template_vars: Vec<TemplateVar>
Trait Implementations§
Source§impl Clone for WebCTESpec
impl Clone for WebCTESpec
Source§fn clone(&self) -> WebCTESpec
fn clone(&self) -> WebCTESpec
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for WebCTESpec
impl RefUnwindSafe for WebCTESpec
impl Send for WebCTESpec
impl Sync for WebCTESpec
impl Unpin for WebCTESpec
impl UnwindSafe for WebCTESpec
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more