pub struct QuotedFileContent {
pub mime_type: Option<String>,
pub value: Option<String>,
}Expand description
The file content to which the comment refers, typically within the anchor region.
For a text file, for example, this would be the text at the location of the comment.
Fields§
§mime_type: Option<String>The MIME type of the quoted content.
value: Option<String>The quoted content itself.
This is interpreted as plain text if set through the API.
Implementations§
Trait Implementations§
Source§impl Clone for QuotedFileContent
impl Clone for QuotedFileContent
Source§fn clone(&self) -> QuotedFileContent
fn clone(&self) -> QuotedFileContent
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 QuotedFileContent
impl Debug for QuotedFileContent
Source§impl Default for QuotedFileContent
impl Default for QuotedFileContent
Source§fn default() -> QuotedFileContent
fn default() -> QuotedFileContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QuotedFileContent
impl<'de> Deserialize<'de> for QuotedFileContent
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
Source§impl Display for QuotedFileContent
impl Display for QuotedFileContent
Source§impl PartialEq for QuotedFileContent
impl PartialEq for QuotedFileContent
Source§impl Serialize for QuotedFileContent
impl Serialize for QuotedFileContent
impl Eq for QuotedFileContent
impl StructuralPartialEq for QuotedFileContent
Auto Trait Implementations§
impl Freeze for QuotedFileContent
impl RefUnwindSafe for QuotedFileContent
impl Send for QuotedFileContent
impl Sync for QuotedFileContent
impl Unpin for QuotedFileContent
impl UnwindSafe for QuotedFileContent
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.