pub struct SourceListing {
pub source: SourceName,
pub kind: String,
pub state: SourceState,
}Expand description
What one configured source is, as sources list reports it.
Fields§
§source: SourceNameThe name the configuration gave it.
kind: StringThe plugin kind behind it.
A String because the vocabulary is open, not because it was not thought about:
this is the kind a source reports, and a subprocess-hosted plugin reports one
arriving over the wire from a binary this workspace never compiled. No
compile-time enumeration can hold that, and a newtype over the same string would
only move where an unrelated value is accepted.
state: SourceStateWhether it built, and what it can do if it did.
Trait Implementations§
Source§impl Clone for SourceListing
impl Clone for SourceListing
Source§fn clone(&self) -> SourceListing
fn clone(&self) -> SourceListing
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 SourceListing
impl Debug for SourceListing
Source§impl JsonSchema for SourceListing
impl JsonSchema for SourceListing
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
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 SourceListing
impl PartialEq for SourceListing
Source§impl Serialize for SourceListing
impl Serialize for SourceListing
impl StructuralPartialEq for SourceListing
Auto Trait Implementations§
impl Freeze for SourceListing
impl RefUnwindSafe for SourceListing
impl Send for SourceListing
impl Sync for SourceListing
impl Unpin for SourceListing
impl UnsafeUnpin for SourceListing
impl UnwindSafe for SourceListing
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