#[non_exhaustive]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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.editable: boolShould playground snippets be editable? Default: false.
copyable: boolDisplay the copy button. Default: true.
copy_js: boolCopy JavaScript files for the editor to the output directory?
Default: true.
line_numbers: boolDisplay line numbers on playground snippets. Default: false.
runnable: boolDisplay 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 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 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<Playground, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Playground, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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