pub struct Renderers {
pub tools: HashMap<String, ToolRenderers>,
pub messages: Vec<String>,
pub entries: Vec<String>,
pub markdown: bool,
pub code: bool,
}Expand description
What an extension draws in the transcript.
Fields§
§tools: HashMap<String, ToolRenderers>Its tools, by name.
messages: Vec<String>Custom message types it draws (registerMessageRenderer).
entries: Vec<String>Custom entry types it draws (registerEntryRenderer).
markdown: boolIt transforms Markdown before it renders (registerMarkdownTransformer).
code: boolIt renders code blocks (pi.yapi.registerCodeRenderer, yapi’s own).
Trait Implementations§
impl Eq for Renderers
impl StructuralPartialEq for Renderers
Auto Trait Implementations§
impl Freeze for Renderers
impl RefUnwindSafe for Renderers
impl Send for Renderers
impl Sync for Renderers
impl Unpin for Renderers
impl UnsafeUnpin for Renderers
impl UnwindSafe for Renderers
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.