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 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 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 JsValuewhere
RenderOptions: Serialize,
impl From<RenderOptions> for JsValuewhere
RenderOptions: Serialize,
Source§fn from(value: RenderOptions) -> Self
fn from(value: RenderOptions) -> Self
Converts to this type from the input type.
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
RenderOptions: Serialize,
impl IntoWasmAbi for &RenderOptionswhere
RenderOptions: Serialize,
Source§impl IntoWasmAbi for RenderOptionswhere
RenderOptions: Serialize,
impl IntoWasmAbi for RenderOptionswhere
RenderOptions: Serialize,
Source§impl OptionFromWasmAbi for RenderOptionswhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for RenderOptionswhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for RenderOptionswhere
RenderOptions: Serialize,
impl OptionIntoWasmAbi for RenderOptionswhere
RenderOptions: Serialize,
Source§impl RefFromWasmAbi for RenderOptionswhere
Self: DeserializeOwned,
impl RefFromWasmAbi for RenderOptionswhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<RenderOptions>
type Anchor = SelfOwner<RenderOptions>
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.Source§impl Serialize for RenderOptions
impl Serialize for RenderOptions
Source§impl Tsify for RenderOptions
impl Tsify for RenderOptions
const DECL: &'static str = "/**\n * Rendering options\n */\nexport interface RenderOptions {\n /**\n * If disabled, the comments won\\\'t be kept in the result. Disabled by\n * default.\n */\n disableComments: boolean;\n /**\n * Base url of the server to fetch the social icons.\n */\n socialIconOrigin: string | null;\n /**\n * Map of fonts that can be used.\n */\n fonts: Record<string, string>;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for RenderOptionswhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for RenderOptionswhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for RenderOptionswhere
RenderOptions: Serialize,
impl VectorIntoWasmAbi for RenderOptionswhere
RenderOptions: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribeVector for RenderOptions
impl WasmDescribeVector for RenderOptions
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
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::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.