pub struct DependencyEndpoint {
pub kind: ItemKind,
/* private fields */
}Expand description
One endpoint of a dependency edge.
Fields§
§kind: ItemKindWhether the endpoint names a task or a project.
Implementations§
Source§impl DependencyEndpoint
impl DependencyEndpoint
Sourcepub fn new(id: String, kind: ItemKind) -> Result<Self, String>
pub fn new(id: String, kind: ItemKind) -> Result<Self, String>
Builds an endpoint from a serialized id, validating a qualified id when present.
§Errors
Returns an error for an empty id or a malformed <source>:<native> id.
Sourcepub fn from_native(id: NativeId, kind: ItemKind) -> Self
pub fn from_native(id: NativeId, kind: ItemKind) -> Self
Builds an endpoint from a source-native id, whose contents are deliberately opaque.
Sourcepub fn is_qualified(&self) -> bool
pub fn is_qualified(&self) -> bool
Whether the id was explicitly supplied as a qualified endpoint.
Trait Implementations§
Source§impl Clone for DependencyEndpoint
impl Clone for DependencyEndpoint
Source§fn clone(&self) -> DependencyEndpoint
fn clone(&self) -> DependencyEndpoint
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 DependencyEndpoint
impl Debug for DependencyEndpoint
Source§impl<'de> Deserialize<'de> for DependencyEndpoint
impl<'de> Deserialize<'de> for DependencyEndpoint
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 Display for DependencyEndpoint
impl Display for DependencyEndpoint
impl Eq for DependencyEndpoint
Source§impl Hash for DependencyEndpoint
impl Hash for DependencyEndpoint
Source§impl JsonSchema for DependencyEndpoint
impl JsonSchema for DependencyEndpoint
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 moreSource§impl PartialEq for DependencyEndpoint
impl PartialEq for DependencyEndpoint
Source§impl PartialEq<NativeId> for DependencyEndpoint
impl PartialEq<NativeId> for DependencyEndpoint
Source§impl Serialize for DependencyEndpoint
impl Serialize for DependencyEndpoint
impl StructuralPartialEq for DependencyEndpoint
Auto Trait Implementations§
impl Freeze for DependencyEndpoint
impl RefUnwindSafe for DependencyEndpoint
impl Send for DependencyEndpoint
impl Sync for DependencyEndpoint
impl Unpin for DependencyEndpoint
impl UnsafeUnpin for DependencyEndpoint
impl UnwindSafe for DependencyEndpoint
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