pub struct SerializationOptionsBuilder { /* private fields */ }Expand description
Builder for SerializationOptions.
Implementations§
Source§impl SerializationOptionsBuilder
impl SerializationOptionsBuilder
pub fn serialization<VALUE: Into<SerializationOptionsSerialization>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn max_depth<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn max_depth<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Deep serialization depth. Default is full depth. Respected only in deep serialization mode.
Sourcepub fn additional_parameters<VALUE: Into<Json>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn additional_parameters<VALUE: Into<Json>>( &mut self, value: VALUE, ) -> &mut Self
Embedder-specific parameters. For example if connected to V8 in Chrome these control DOM
serialization via maxNodeDepth: integer and includeShadowTree: "none" | "open" | "all".
Values can be only of type string or integer.
Sourcepub fn build(
&self,
) -> Result<SerializationOptions, SerializationOptionsBuilderError>
pub fn build( &self, ) -> Result<SerializationOptions, SerializationOptionsBuilderError>
Trait Implementations§
Source§impl Clone for SerializationOptionsBuilder
impl Clone for SerializationOptionsBuilder
Source§fn clone(&self) -> SerializationOptionsBuilder
fn clone(&self) -> SerializationOptionsBuilder
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 SerializationOptionsBuilder
impl RefUnwindSafe for SerializationOptionsBuilder
impl Send for SerializationOptionsBuilder
impl Sync for SerializationOptionsBuilder
impl Unpin for SerializationOptionsBuilder
impl UnsafeUnpin for SerializationOptionsBuilder
impl UnwindSafe for SerializationOptionsBuilder
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