pub struct NodeDescription {
pub schema_version: String,
pub node_type: String,
pub service_id: String,
pub service_version: String,
pub instance_policy: NodeInstancePolicy,
pub routes: Vec<String>,
pub app_access: BTreeMap<String, SpaceAccessLevel>,
pub capabilities: Vec<String>,
pub details: Map<String, Value>,
}Fields§
§schema_version: String§node_type: String§service_id: String§service_version: String§instance_policy: NodeInstancePolicy§routes: Vec<String>§app_access: BTreeMap<String, SpaceAccessLevel>Exact runtime targets callable on behalf of an App principal. Core checks these levels before dispatch; an absent target is not App-callable.
capabilities: Vec<String>§details: Map<String, Value>Implementations§
Source§impl NodeDescription
impl NodeDescription
Sourcepub fn validate_app_access(&self) -> Result<(), String>
pub fn validate_app_access(&self) -> Result<(), String>
Shared producer/consumer validation. Internal routes may remain private; every advertised App route and Interaction Flow route needs a policy.
Trait Implementations§
Source§impl Clone for NodeDescription
impl Clone for NodeDescription
Source§impl Debug for NodeDescription
impl Debug for NodeDescription
Source§impl<'de> Deserialize<'de> for NodeDescription
impl<'de> Deserialize<'de> for NodeDescription
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 NodeDescription
impl PartialEq for NodeDescription
Source§impl Serialize for NodeDescription
impl Serialize for NodeDescription
impl StructuralPartialEq for NodeDescription
Auto Trait Implementations§
impl Forget for NodeDescription
impl Freeze for NodeDescription
impl RefUnwindSafe for NodeDescription
impl Send for NodeDescription
impl Sync for NodeDescription
impl Unpin for NodeDescription
impl UnsafeUnpin for NodeDescription
impl UnwindSafe for NodeDescription
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