pub struct Port {
pub id: String,
pub dir: Direction,
pub shape: Shape,
pub description: Option<String>,
pub required: bool,
pub location: Selector,
pub schema: Schema,
pub constraints: Option<Constraints>,
pub units: Option<Units>,
pub default: Option<Value>,
pub partition_key: Option<bool>,
}Expand description
Port definition.
Fields§
§id: StringUnique identifier for the port within the manifest.
dir: DirectionDirection (input or output).
shape: ShapeStructural shape of the port.
description: Option<String>Optional documentation.
required: boolWhether the port value is required (defaults to true).
location: SelectorSelector binding the port to a workbook region.
schema: SchemaType information for values carried by the port.
constraints: Option<Constraints>Optional constraints applied to values.
units: Option<Units>Optional units metadata.
default: Option<Value>Optional default value (inputs only).
partition_key: Option<bool>Reserved hint for future partitioning/sharding semantics. No effect in core-v0 runtimes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Port
impl<'de> Deserialize<'de> for Port
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 JsonSchema for Port
impl JsonSchema for Port
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for Port
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnwindSafe for Port
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)