pub struct NodeKitManifest {
pub key: NodeKitKey,
pub title: String,
pub version: u32,
pub supported_adapters: Vec<NodeKitAdapterKey>,
pub capabilities: Vec<String>,
pub layout_hints: NodeKitLayoutHints,
pub recipes: Vec<NodeSchema>,
pub fixtures: Vec<NodeKitFixture>,
}Expand description
A versioned package of semantic node families, layout hints, and fixtures.
Fields§
§key: NodeKitKey§title: String§version: u32§supported_adapters: Vec<NodeKitAdapterKey>§capabilities: Vec<String>§layout_hints: NodeKitLayoutHints§recipes: Vec<NodeSchema>§fixtures: Vec<NodeKitFixture>Implementations§
Source§impl NodeKitManifest
impl NodeKitManifest
pub fn new(key: impl Into<NodeKitKey>, title: impl Into<String>) -> Self
pub fn with_version(self, version: u32) -> Self
pub fn with_supported_adapter( self, adapter: impl Into<NodeKitAdapterKey>, ) -> Self
pub fn with_capability(self, capability: impl Into<String>) -> Self
pub fn with_layout_hints(self, layout_hints: NodeKitLayoutHints) -> Self
pub fn recipe(self, recipe: NodeSchema) -> Self
pub fn recipes(self, recipes: impl IntoIterator<Item = NodeSchema>) -> Self
pub fn fixture(self, fixture: NodeKitFixture) -> Self
pub fn fixtures( self, fixtures: impl IntoIterator<Item = NodeKitFixture>, ) -> Self
pub fn recipe_for_kind(&self, kind: &NodeKindKey) -> Option<&NodeSchema>
pub fn fixture_for_key(&self, key: &str) -> Option<&NodeKitFixture>
pub fn layout_hints(&self) -> &NodeKitLayoutHints
pub fn node_registry(&self) -> NodeRegistry
pub fn build_fixture_graph( &self, key: &str, ) -> Result<Graph, NodeKitFixtureError>
Trait Implementations§
Source§impl Clone for NodeKitManifest
impl Clone for NodeKitManifest
Source§fn clone(&self) -> NodeKitManifest
fn clone(&self) -> NodeKitManifest
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 NodeKitManifest
impl Debug for NodeKitManifest
Source§impl<'de> Deserialize<'de> for NodeKitManifest
impl<'de> Deserialize<'de> for NodeKitManifest
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 NodeKitManifest
impl PartialEq for NodeKitManifest
Source§fn eq(&self, other: &NodeKitManifest) -> bool
fn eq(&self, other: &NodeKitManifest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeKitManifest
impl Serialize for NodeKitManifest
impl StructuralPartialEq for NodeKitManifest
Auto Trait Implementations§
impl Freeze for NodeKitManifest
impl RefUnwindSafe for NodeKitManifest
impl Send for NodeKitManifest
impl Sync for NodeKitManifest
impl Unpin for NodeKitManifest
impl UnsafeUnpin for NodeKitManifest
impl UnwindSafe for NodeKitManifest
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