pub struct SourceDescriptor {
pub id: String,
pub kind: String,
pub path: Option<String>,
pub format: Option<String>,
pub hash: Option<String>,
}Expand description
A declared source artifact, referenced from source maps and diagnostics by
its id. (sources[] in the package.)
Fields§
§id: String§kind: String§path: Option<String>§format: Option<String>§hash: Option<String>Trait Implementations§
Source§impl Clone for SourceDescriptor
impl Clone for SourceDescriptor
Source§fn clone(&self) -> SourceDescriptor
fn clone(&self) -> SourceDescriptor
Returns a duplicate of the value. Read more
1.0.0 · 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 SourceDescriptor
impl Debug for SourceDescriptor
Source§impl<'de> Deserialize<'de> for SourceDescriptor
impl<'de> Deserialize<'de> for SourceDescriptor
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 SourceDescriptor
impl PartialEq for SourceDescriptor
Source§impl Serialize for SourceDescriptor
impl Serialize for SourceDescriptor
impl Eq for SourceDescriptor
impl StructuralPartialEq for SourceDescriptor
Auto Trait Implementations§
impl Freeze for SourceDescriptor
impl RefUnwindSafe for SourceDescriptor
impl Send for SourceDescriptor
impl Sync for SourceDescriptor
impl Unpin for SourceDescriptor
impl UnsafeUnpin for SourceDescriptor
impl UnwindSafe for SourceDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more