pub struct DocumentationSnippet {
pub content: String,
pub tipo: Option<String>,
pub source_urls: Option<Vec<String>>,
}Expand description
Represents a single documentation excerpt returned by the docs endpoint.
Fields§
§content: StringMarkdown or plain-text content of the snippet.
tipo: Option<String>Content type hint (e.g. "text", "code"), if provided.
source_urls: Option<Vec<String>>Source URLs associated with this snippet, if provided.
Trait Implementations§
Source§impl Debug for DocumentationSnippet
impl Debug for DocumentationSnippet
Source§impl<'de> Deserialize<'de> for DocumentationSnippet
impl<'de> Deserialize<'de> for DocumentationSnippet
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 DocumentationSnippet
impl RefUnwindSafe for DocumentationSnippet
impl Send for DocumentationSnippet
impl Sync for DocumentationSnippet
impl Unpin for DocumentationSnippet
impl UnsafeUnpin for DocumentationSnippet
impl UnwindSafe for DocumentationSnippet
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