pub struct IMarkdownStringDTO {
pub Value: String,
pub IsTrusted: Option<bool>,
pub SupportThemeIcons: Option<bool>,
pub SupportHTML: Option<bool>,
pub BaseURI: Option<Value>,
pub URIs: Option<HashMap<String, Value>>,
}Expand description
A serializable struct that represents a string containing markdown. It can
optionally be marked as “trusted” to allow for command links and other
active content. This is analogous to vscode.MarkdownString.
Fields§
§Value: StringThe markdown string content.
IsTrusted: Option<bool>Whether this markdown string is trusted. Trusted strings can execute commands, for example.
SupportThemeIcons: Option<bool>A flag to indicate that this markdown string might contain icons that need to be rendered using a theme-aware icon font.
SupportHTML: Option<bool>A flag to indicate that this markdown string might contain HTML tags that need to be rendered.
BaseURI: Option<Value>An optional base URI to resolve relative paths against, especially for
images. Serialized UriComponents.
URIs: Option<HashMap<String, Value>>A map of URIs that are allowed to be accessed, for sanitization purposes.
Trait Implementations§
Source§impl Clone for IMarkdownStringDTO
impl Clone for IMarkdownStringDTO
Source§fn clone(&self) -> IMarkdownStringDTO
fn clone(&self) -> IMarkdownStringDTO
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 IMarkdownStringDTO
impl Debug for IMarkdownStringDTO
Source§impl<'de> Deserialize<'de> for IMarkdownStringDTO
impl<'de> Deserialize<'de> for IMarkdownStringDTO
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
Auto Trait Implementations§
impl Freeze for IMarkdownStringDTO
impl RefUnwindSafe for IMarkdownStringDTO
impl Send for IMarkdownStringDTO
impl Sync for IMarkdownStringDTO
impl Unpin for IMarkdownStringDTO
impl UnwindSafe for IMarkdownStringDTO
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