pub struct ServerCapabilitiesResources {
pub list_changed: Option<bool>,
pub subscribe: Option<bool>,
}
Expand description
Present if the server offers any resources to read.
JSON schema
{
"description": "Present if the server offers any resources to read.",
"type": "object",
"properties": {
"listChanged": {
"description": "Whether this server supports notifications for changes to the resource list.",
"type": "boolean"
},
"subscribe": {
"description": "Whether this server supports subscribing to resource updates.",
"type": "boolean"
}
}
}
Fields§
§list_changed: Option<bool>
Whether this server supports notifications for changes to the resource list.
subscribe: Option<bool>
Whether this server supports subscribing to resource updates.
Trait Implementations§
Source§impl Clone for ServerCapabilitiesResources
impl Clone for ServerCapabilitiesResources
Source§fn clone(&self) -> ServerCapabilitiesResources
fn clone(&self) -> ServerCapabilitiesResources
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 ServerCapabilitiesResources
impl Debug for ServerCapabilitiesResources
Source§impl Default for ServerCapabilitiesResources
impl Default for ServerCapabilitiesResources
Source§fn default() -> ServerCapabilitiesResources
fn default() -> ServerCapabilitiesResources
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerCapabilitiesResources
impl<'de> Deserialize<'de> for ServerCapabilitiesResources
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 ServerCapabilitiesResources
impl RefUnwindSafe for ServerCapabilitiesResources
impl Send for ServerCapabilitiesResources
impl Sync for ServerCapabilitiesResources
impl Unpin for ServerCapabilitiesResources
impl UnwindSafe for ServerCapabilitiesResources
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