Struct mrml_wasm::RenderOptions
source · pub struct RenderOptions {
pub disable_comments: bool,
pub social_icon_origin: Option<String>,
pub fonts: HashMap<String, String>,
}Expand description
Rendering options
Fields§
§disable_comments: boolIf disabled, the comments won’t be kept in the result. Disabled by default.
Base url of the server to fetch the social icons.
fonts: HashMap<String, String>Map of fonts that can be used.
Trait Implementations§
source§impl Clone for RenderOptions
impl Clone for RenderOptions
source§fn clone(&self) -> RenderOptions
fn clone(&self) -> RenderOptions
Returns a copy 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 moresource§impl Debug for RenderOptions
impl Debug for RenderOptions
source§impl Default for RenderOptions
impl Default for RenderOptions
source§fn default() -> RenderOptions
fn default() -> RenderOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RenderOptions
impl<'de> Deserialize<'de> for RenderOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<RenderOptions> for RenderOptions
impl From<RenderOptions> for RenderOptions
source§fn from(value: RenderOptions) -> Self
fn from(value: RenderOptions) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for RenderOptionswhere
Self: DeserializeOwned,
impl FromWasmAbi for RenderOptionswhere
Self: DeserializeOwned,
source§impl IntoWasmAbi for RenderOptionswhere
Self: Serialize,
impl IntoWasmAbi for RenderOptionswhere
Self: Serialize,
source§impl OptionFromWasmAbi for RenderOptionswhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for RenderOptionswhere
Self: DeserializeOwned,
source§impl OptionIntoWasmAbi for RenderOptionswhere
Self: Serialize,
impl OptionIntoWasmAbi for RenderOptionswhere
Self: Serialize,
source§impl Serialize for RenderOptions
impl Serialize for RenderOptions
source§impl Tsify for RenderOptions
impl Tsify for RenderOptions
type JsType = JsType
const DECL: &'static str = "export interface RenderOptions {\n disableComments: boolean;\n socialIconOrigin: string | null;\n fonts: Record<string, string>;\n}"
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Auto Trait Implementations§
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl UnwindSafe for RenderOptions
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abisource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
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.