pub struct NodeInput {
pub id: String,
pub path: String,
pub language: String,
}Expand description
A single node in a DependencyGraphInput.
id must satisfy the super::validate_node_id rules.
§Examples
use sdivi_core::input::NodeInput;
let n = NodeInput {
id: "src/lib.rs".to_string(),
path: "src/lib.rs".to_string(),
language: "rust".to_string(),
};
assert_eq!(n.id, "src/lib.rs");Fields§
§id: StringCanonical node ID: repo-relative path, forward slashes, no leading
./, no trailing /, not absolute, no .., not empty.
path: StringHuman-readable path (may differ from id if aliased).
language: StringLanguage tag (e.g., "rust", "python").
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeInput
impl<'de> Deserialize<'de> for NodeInput
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
impl StructuralPartialEq for NodeInput
Auto Trait Implementations§
impl Freeze for NodeInput
impl RefUnwindSafe for NodeInput
impl Send for NodeInput
impl Sync for NodeInput
impl Unpin for NodeInput
impl UnsafeUnpin for NodeInput
impl UnwindSafe for NodeInput
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