pub struct DiscoverySnapshot {
pub server_info: ServerInfo,
pub tools: ListToolsResult,
}Fields§
§server_info: ServerInfo§tools: ListToolsResultImplementations§
Source§impl DiscoverySnapshot
impl DiscoverySnapshot
pub fn initialize_json(&self) -> Result<String>
pub fn tools_json(&self) -> Result<String>
Trait Implementations§
Source§impl Clone for DiscoverySnapshot
impl Clone for DiscoverySnapshot
Source§fn clone(&self) -> DiscoverySnapshot
fn clone(&self) -> DiscoverySnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DiscoverySnapshot
impl RefUnwindSafe for DiscoverySnapshot
impl Send for DiscoverySnapshot
impl Sync for DiscoverySnapshot
impl Unpin for DiscoverySnapshot
impl UnsafeUnpin for DiscoverySnapshot
impl UnwindSafe for DiscoverySnapshot
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