pub struct ResourceContent {
pub uri: String,
pub mime_type: String,
pub text: Option<String>,
pub blob: Option<String>,
}
Expand description
Content of a resource, which can be either text or binary data
Fields§
§uri: String
URI that uniquely identifies the resource
mime_type: String
MIME type of the resource content
text: Option<String>
Text content (used for text resources)
blob: Option<String>
Binary content encoded as base64 (used for binary resources)
Trait Implementations§
Source§impl Clone for ResourceContent
impl Clone for ResourceContent
Source§fn clone(&self) -> ResourceContent
fn clone(&self) -> ResourceContent
Returns a copy 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 ResourceContent
impl Debug for ResourceContent
Source§impl<'de> Deserialize<'de> for ResourceContent
impl<'de> Deserialize<'de> for ResourceContent
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 ResourceContent
impl RefUnwindSafe for ResourceContent
impl Send for ResourceContent
impl Sync for ResourceContent
impl Unpin for ResourceContent
impl UnwindSafe for ResourceContent
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