#[non_exhaustive]pub struct SyntaxHighlight {
pub activated: bool,
pub theme: Option<&'static str>,
}
Expand description
Represents settings related to syntax highlighting of payloads and cURL commands.
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.activated: bool
Boolean telling whether syntax highlighting should be
activated or not. Defaults to true
.
theme: Option<&'static str>
Highlight.js syntax coloring theme to use.
Implementations§
Trait Implementations§
Source§impl Clone for SyntaxHighlight
impl Clone for SyntaxHighlight
Source§fn clone(&self) -> SyntaxHighlight
fn clone(&self) -> SyntaxHighlight
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 SyntaxHighlight
impl Debug for SyntaxHighlight
Source§impl Default for SyntaxHighlight
impl Default for SyntaxHighlight
Source§impl From<bool> for SyntaxHighlight
impl From<bool> for SyntaxHighlight
Auto Trait Implementations§
impl Freeze for SyntaxHighlight
impl RefUnwindSafe for SyntaxHighlight
impl Send for SyntaxHighlight
impl Sync for SyntaxHighlight
impl Unpin for SyntaxHighlight
impl UnwindSafe for SyntaxHighlight
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