pub struct SurfaceDescriptor {
pub id: String,
pub symbol: Symbol,
pub title: String,
pub description: String,
pub input_shape: Value,
pub output_shape: Option<Value>,
pub roles: Vec<Symbol>,
pub capabilities: Vec<Symbol>,
pub annotations: Vec<(String, String)>,
}Expand description
Plain-data spine describing a surface (a callable projected onto a foreign tool surface). Depends only on kernel types; concrete codecs render it.
Fields§
§id: StringStable surface id (for example a skill id).
symbol: SymbolKernel symbol that names the underlying callable.
title: StringHuman-facing title.
description: StringHuman-facing description.
input_shape: ValueShape describing accepted input.
output_shape: Option<Value>Shape describing produced output, when known.
roles: Vec<Symbol>Roles this surface is published under.
capabilities: Vec<Symbol>Capabilities the surface requires.
annotations: Vec<(String, String)>Free-form (key, value) annotations.
Implementations§
Source§impl SurfaceDescriptor
impl SurfaceDescriptor
Sourcepub fn external_name(&self, policy: ExternalNamePolicy) -> String
pub fn external_name(&self, policy: ExternalNamePolicy) -> String
Project this surface’s symbol onto an external name under policy.
Trait Implementations§
Source§impl Clone for SurfaceDescriptor
impl Clone for SurfaceDescriptor
Source§fn clone(&self) -> SurfaceDescriptor
fn clone(&self) -> SurfaceDescriptor
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 !RefUnwindSafe for SurfaceDescriptor
impl !UnwindSafe for SurfaceDescriptor
impl Freeze for SurfaceDescriptor
impl Send for SurfaceDescriptor
impl Sync for SurfaceDescriptor
impl Unpin for SurfaceDescriptor
impl UnsafeUnpin for SurfaceDescriptor
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