pub struct ComponentInfo {
pub component_id: String,
pub description: Option<String>,
pub input_schema: Option<String>,
pub output_schema: Option<String>,
pub path: String,
}Expand description
Information about a single component.
Fields§
§component_id: StringUnique component identifier within its plugin (e.g., “my_function”, “clean”). Used by workers for flat lookup when executing tasks.
description: Option<String>Human-readable description.
input_schema: Option<String>JSON Schema for the component’s expected input, encoded as JSON string.
output_schema: Option<String>JSON Schema for the component’s output, encoded as JSON string.
path: StringPath pattern this component is registered at (e.g., “/my_function”, “/core/{*path}”). The orchestrator mounts this under the plugin’s route prefix to build the unified routing trie. Defaults to “/{component_id}” if empty.
Implementations§
Source§impl ComponentInfo
impl ComponentInfo
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description, or the default value if description is unset.
Sourcepub fn input_schema(&self) -> &str
pub fn input_schema(&self) -> &str
Returns the value of input_schema, or the default value if input_schema is unset.
Sourcepub fn output_schema(&self) -> &str
pub fn output_schema(&self) -> &str
Returns the value of output_schema, or the default value if output_schema is unset.
Trait Implementations§
Source§impl Clone for ComponentInfo
impl Clone for ComponentInfo
Source§fn clone(&self) -> ComponentInfo
fn clone(&self) -> ComponentInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ComponentInfo
impl Debug for ComponentInfo
Source§impl Default for ComponentInfo
impl Default for ComponentInfo
Source§impl<'de> Deserialize<'de> for ComponentInfo
impl<'de> Deserialize<'de> for ComponentInfo
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>,
Source§impl Hash for ComponentInfo
impl Hash for ComponentInfo
Source§impl Message for ComponentInfo
impl Message for ComponentInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ComponentInfo
impl PartialEq for ComponentInfo
Source§impl Serialize for ComponentInfo
impl Serialize for ComponentInfo
impl Eq for ComponentInfo
impl StructuralPartialEq for ComponentInfo
Auto Trait Implementations§
impl Freeze for ComponentInfo
impl RefUnwindSafe for ComponentInfo
impl Send for ComponentInfo
impl Sync for ComponentInfo
impl Unpin for ComponentInfo
impl UnsafeUnpin for ComponentInfo
impl UnwindSafe for ComponentInfo
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
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§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
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request