pub struct Looks {
pub title: Option<&'static str>,
pub icons: &'static [Icon],
pub mime: Option<&'static str>,
pub audience: &'static [Role],
pub priority: Option<f32>,
pub about: Option<&'static str>,
pub website: Option<&'static str>,
}Expand description
How a tool, prompt, resource or the server shows to people: none of it changes what it does.
Fields§
§title: Option<&'static str>A name for people, where the registered name is for models.
icons: &'static [Icon]§mime: Option<&'static str>A resource’s MIME type, shown before it is read.
audience: &'static [Role]Who a resource is for: the user, the model, or both.
priority: Option<f32>How much a resource matters, from 0 (least) to 1 (most).
about: Option<&'static str>What the server is, for people: the server only, since tools, prompts and resources take theirs from doc comments.
website: Option<&'static str>The server’s home page: the server only.
Trait Implementations§
impl Copy for Looks
impl StructuralPartialEq for Looks
Auto Trait Implementations§
impl Forget for Looks
impl Freeze for Looks
impl RefUnwindSafe for Looks
impl Send for Looks
impl Sync for Looks
impl Unpin for Looks
impl UnsafeUnpin for Looks
impl UnwindSafe for Looks
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