pub struct McpUiResourceMeta { /* private fields */ }Expand description
Rendering and security metadata for a UI resource.
Implementations§
Source§impl McpUiResourceMeta
impl McpUiResourceMeta
Sourcepub fn csp(self, csp: McpUiResourceCsp) -> Self
pub fn csp(self, csp: McpUiResourceCsp) -> Self
Declare the external origins the App needs.
Sourcepub fn permissions(self, permissions: McpUiPermissions) -> Self
pub fn permissions(self, permissions: McpUiPermissions) -> Self
Declare optional browser permissions.
Sourcepub fn domain(self, domain: McpAppDomain) -> Self
pub fn domain(self, domain: McpAppDomain) -> Self
Request a host-specific dedicated sandbox domain.
Sourcepub fn prefers_border(self, prefers_border: bool) -> Self
pub fn prefers_border(self, prefers_border: bool) -> Self
Request whether the host displays a visible border/background.
Trait Implementations§
Source§impl Clone for McpUiResourceMeta
impl Clone for McpUiResourceMeta
Source§fn clone(&self) -> McpUiResourceMeta
fn clone(&self) -> McpUiResourceMeta
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 moreSource§impl Debug for McpUiResourceMeta
impl Debug for McpUiResourceMeta
Source§impl Default for McpUiResourceMeta
impl Default for McpUiResourceMeta
Source§fn default() -> McpUiResourceMeta
fn default() -> McpUiResourceMeta
Returns the “default value” for a type. Read more
impl Eq for McpUiResourceMeta
Source§impl PartialEq for McpUiResourceMeta
impl PartialEq for McpUiResourceMeta
Source§impl Serialize for McpUiResourceMeta
impl Serialize for McpUiResourceMeta
impl StructuralPartialEq for McpUiResourceMeta
Auto Trait Implementations§
impl Freeze for McpUiResourceMeta
impl RefUnwindSafe for McpUiResourceMeta
impl Send for McpUiResourceMeta
impl Sync for McpUiResourceMeta
impl Unpin for McpUiResourceMeta
impl UnsafeUnpin for McpUiResourceMeta
impl UnwindSafe for McpUiResourceMeta
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.