pub struct Playground {
pub editable: bool,
pub copyable: bool,
pub copy_js: bool,
pub line_numbers: bool,
pub runnable: bool,
}
Expand description
Configuration for tweaking how the HTML renderer handles the playground.
Fields§
§editable: bool
Should playground snippets be editable? Default: false
.
copyable: bool
Display the copy button. Default: true
.
copy_js: bool
Copy JavaScript files for the editor to the output directory?
Default: true
.
line_numbers: bool
Display line numbers on playground snippets. Default: false
.
runnable: bool
Display the run button. Default: true
Trait Implementations§
Source§impl Clone for Playground
impl Clone for Playground
Source§fn clone(&self) -> Playground
fn clone(&self) -> Playground
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 Playground
impl Debug for Playground
Source§impl Default for Playground
impl Default for Playground
Source§fn default() -> Playground
fn default() -> Playground
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Playgroundwhere
Playground: Default,
impl<'de> Deserialize<'de> for Playgroundwhere
Playground: Default,
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 PartialEq for Playground
impl PartialEq for Playground
Source§impl Serialize for Playground
impl Serialize for Playground
impl StructuralPartialEq for Playground
Auto Trait Implementations§
impl Freeze for Playground
impl RefUnwindSafe for Playground
impl Send for Playground
impl Sync for Playground
impl Unpin for Playground
impl UnwindSafe for Playground
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