Struct worker::MinifyConfig
source · [−]Expand description
Configuration options for Cloudflare’s minification features: https://www.cloudflare.com/website-optimization/
Fields
js: boolhtml: boolcss: boolTrait Implementations
sourceimpl Clone for MinifyConfig
impl Clone for MinifyConfig
sourcefn clone(&self) -> MinifyConfig
fn clone(&self) -> MinifyConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Default for MinifyConfig
impl Default for MinifyConfig
sourcefn default() -> MinifyConfig
fn default() -> MinifyConfig
Returns the “default value” for a type. Read more
sourceimpl From<MinifyConfig> for JsValue
impl From<MinifyConfig> for JsValue
sourcefn from(value: MinifyConfig) -> Self
fn from(value: MinifyConfig) -> Self
Performs the conversion.
sourceimpl FromWasmAbi for MinifyConfig
impl FromWasmAbi for MinifyConfig
sourceimpl IntoWasmAbi for MinifyConfig
impl IntoWasmAbi for MinifyConfig
sourceimpl OptionFromWasmAbi for MinifyConfig
impl OptionFromWasmAbi for MinifyConfig
sourceimpl OptionIntoWasmAbi for MinifyConfig
impl OptionIntoWasmAbi for MinifyConfig
sourceimpl RefFromWasmAbi for MinifyConfig
impl RefFromWasmAbi for MinifyConfig
type Anchor = Ref<'static, MinifyConfig>
type Anchor = Ref<'static, MinifyConfig>
The type that holds the reference to Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read more
sourceunsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
Recover a Self::Anchor from Self::Abi. Read more
sourceimpl RefMutFromWasmAbi for MinifyConfig
impl RefMutFromWasmAbi for MinifyConfig
type Anchor = RefMut<'static, MinifyConfig>
type Anchor = RefMut<'static, MinifyConfig>
Same as RefFromWasmAbi::Anchor
sourceunsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as RefFromWasmAbi::ref_from_abi
sourceimpl WasmDescribe for MinifyConfig
impl WasmDescribe for MinifyConfig
impl Copy for MinifyConfig
Auto Trait Implementations
impl RefUnwindSafe for MinifyConfig
impl Send for MinifyConfig
impl Sync for MinifyConfig
impl Unpin for MinifyConfig
impl UnwindSafe for MinifyConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
sourcepub fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
pub fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more