pub struct CanvasProviderIdentity {
pub id: String,
pub name: Option<String>,
}Expand description
Stable identity for a host/SDK connection that supplies built-in canvases.
When set on session create or resume, the runtime uses id verbatim as
the agent-facing canvas extension id, so canvases declared on a control
connection survive stdio reconnect and CLI process restart instead of being
re-keyed to a per-connection id. The id is opaque to the runtime; a
per-window-stable value such as app:builtin:<windowId> is recommended. An
id beginning with connection: is reserved and ignored by the runtime.
Fields§
§id: StringOpaque, stable provider id used verbatim as the canvas extension id.
name: Option<String>Optional display name surfaced as the canvas extension name.
Implementations§
Trait Implementations§
Source§impl Clone for CanvasProviderIdentity
impl Clone for CanvasProviderIdentity
Source§fn clone(&self) -> CanvasProviderIdentity
fn clone(&self) -> CanvasProviderIdentity
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 CanvasProviderIdentity
impl Debug for CanvasProviderIdentity
Source§impl<'de> Deserialize<'de> for CanvasProviderIdentity
impl<'de> Deserialize<'de> for CanvasProviderIdentity
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
Source§impl PartialEq for CanvasProviderIdentity
impl PartialEq for CanvasProviderIdentity
Source§impl Serialize for CanvasProviderIdentity
impl Serialize for CanvasProviderIdentity
impl StructuralPartialEq for CanvasProviderIdentity
Auto Trait Implementations§
impl Freeze for CanvasProviderIdentity
impl RefUnwindSafe for CanvasProviderIdentity
impl Send for CanvasProviderIdentity
impl Sync for CanvasProviderIdentity
impl Unpin for CanvasProviderIdentity
impl UnsafeUnpin for CanvasProviderIdentity
impl UnwindSafe for CanvasProviderIdentity
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