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: bool
If 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
const DECL: &'static str = "export interface RenderOptions {\n disableComments: boolean;\n socialIconOrigin: string | null;\n fonts: Record<string, string>;\n}"
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Auto Trait Implementations§
impl Freeze for RenderOptions
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
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§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
.