Struct cargo_metadata::Source
source · [−]pub struct Source {
pub repr: String,
}
Expand description
The source of a package such as crates.io.
Fields
repr: String
The underlying string representation of a source.
Implementations
sourceimpl Source
impl Source
sourcepub fn is_crates_io(&self) -> bool
pub fn is_crates_io(&self) -> bool
Returns true if the source is crates.io.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Source
impl<'de> Deserialize<'de> for Source
sourcefn 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 Eq for Source
impl StructuralEq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more