pub struct AkamaiWebTaskBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> AkamaiWebTaskBuilder<S>
impl<S: State> AkamaiWebTaskBuilder<S>
Sourcepub fn build(self) -> AkamaiWebTaskwhere
S: IsComplete,
pub fn build(self) -> AkamaiWebTaskwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn page_url(
self,
value: impl Into<String>,
) -> AkamaiWebTaskBuilder<SetPageUrl<S>>where
S::PageUrl: IsUnset,
pub fn page_url(
self,
value: impl Into<String>,
) -> AkamaiWebTaskBuilder<SetPageUrl<S>>where
S::PageUrl: IsUnset,
Required.
Page URL associated with the Akamai script.
Sourcepub fn v3_url(
self,
value: impl Into<String>,
) -> AkamaiWebTaskBuilder<SetV3Url<S>>where
S::V3Url: IsUnset,
pub fn v3_url(
self,
value: impl Into<String>,
) -> AkamaiWebTaskBuilder<SetV3Url<S>>where
S::V3Url: IsUnset,
Required.
URL of the Akamai v3 script.
Most sites change this URL on every request, so it has to be read from the page rather than hard-coded. It is the URL itself, not the script the URL serves.
Sourcepub fn ua(self, value: impl Into<String>) -> AkamaiWebTaskBuilder<SetUa<S>>where
S::Ua: IsUnset,
pub fn ua(self, value: impl Into<String>) -> AkamaiWebTaskBuilder<SetUa<S>>where
S::Ua: IsUnset,
Required.
Browser user agent.
Sourcepub fn lang(self, value: impl Into<String>) -> AkamaiWebTaskBuilder<SetLang<S>>where
S::Lang: IsUnset,
pub fn lang(self, value: impl Into<String>) -> AkamaiWebTaskBuilder<SetLang<S>>where
S::Lang: IsUnset,
Required.
Browser language.
Sourcepub fn index(self, value: i32) -> AkamaiWebTaskBuilder<SetIndex<S>>where
S::Index: IsUnset,
pub fn index(self, value: i32) -> AkamaiWebTaskBuilder<SetIndex<S>>where
S::Index: IsUnset,
Required.
Current interaction round.
Sourcepub fn abck(self, value: impl Into<String>) -> AkamaiWebTaskBuilder<SetAbck<S>>where
S::Abck: IsUnset,
pub fn abck(self, value: impl Into<String>) -> AkamaiWebTaskBuilder<SetAbck<S>>where
S::Abck: IsUnset,
Sourcepub fn maybe_abck(
self,
value: Option<impl Into<String>>,
) -> AkamaiWebTaskBuilder<SetAbck<S>>where
S::Abck: IsUnset,
pub fn maybe_abck(
self,
value: Option<impl Into<String>>,
) -> AkamaiWebTaskBuilder<SetAbck<S>>where
S::Abck: IsUnset,
Sourcepub fn bmsz(self, value: impl Into<String>) -> AkamaiWebTaskBuilder<SetBmsz<S>>where
S::Bmsz: IsUnset,
pub fn bmsz(self, value: impl Into<String>) -> AkamaiWebTaskBuilder<SetBmsz<S>>where
S::Bmsz: IsUnset,
Sourcepub fn maybe_bmsz(
self,
value: Option<impl Into<String>>,
) -> AkamaiWebTaskBuilder<SetBmsz<S>>where
S::Bmsz: IsUnset,
pub fn maybe_bmsz(
self,
value: Option<impl Into<String>>,
) -> AkamaiWebTaskBuilder<SetBmsz<S>>where
S::Bmsz: IsUnset,
Sourcepub fn script_base64(
self,
value: impl Into<String>,
) -> AkamaiWebTaskBuilder<SetScriptBase64<S>>where
S::ScriptBase64: IsUnset,
pub fn script_base64(
self,
value: impl Into<String>,
) -> AkamaiWebTaskBuilder<SetScriptBase64<S>>where
S::ScriptBase64: IsUnset,
Sourcepub fn maybe_script_base64(
self,
value: Option<impl Into<String>>,
) -> AkamaiWebTaskBuilder<SetScriptBase64<S>>where
S::ScriptBase64: IsUnset,
pub fn maybe_script_base64(
self,
value: Option<impl Into<String>>,
) -> AkamaiWebTaskBuilder<SetScriptBase64<S>>where
S::ScriptBase64: IsUnset,
Sourcepub fn encode_data(
self,
value: impl Into<String>,
) -> AkamaiWebTaskBuilder<SetEncodeData<S>>where
S::EncodeData: IsUnset,
pub fn encode_data(
self,
value: impl Into<String>,
) -> AkamaiWebTaskBuilder<SetEncodeData<S>>where
S::EncodeData: IsUnset,
Sourcepub fn maybe_encode_data(
self,
value: Option<impl Into<String>>,
) -> AkamaiWebTaskBuilder<SetEncodeData<S>>where
S::EncodeData: IsUnset,
pub fn maybe_encode_data(
self,
value: Option<impl Into<String>>,
) -> AkamaiWebTaskBuilder<SetEncodeData<S>>where
S::EncodeData: IsUnset,
Sourcepub fn extra(self, value: ExtraFields) -> AkamaiWebTaskBuilder<SetExtra<S>>where
S::Extra: IsUnset,
pub fn extra(self, value: ExtraFields) -> AkamaiWebTaskBuilder<SetExtra<S>>where
S::Extra: IsUnset,
Sourcepub fn maybe_extra(
self,
value: Option<ExtraFields>,
) -> AkamaiWebTaskBuilder<SetExtra<S>>where
S::Extra: IsUnset,
pub fn maybe_extra(
self,
value: Option<ExtraFields>,
) -> AkamaiWebTaskBuilder<SetExtra<S>>where
S::Extra: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for AkamaiWebTaskBuilder<S>
impl<S> RefUnwindSafe for AkamaiWebTaskBuilder<S>
impl<S> Send for AkamaiWebTaskBuilder<S>
impl<S> Sync for AkamaiWebTaskBuilder<S>
impl<S> Unpin for AkamaiWebTaskBuilder<S>
impl<S> UnsafeUnpin for AkamaiWebTaskBuilder<S>
impl<S> UnwindSafe for AkamaiWebTaskBuilder<S>
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