pub struct EncodableSourceId {
pub kind: SourceKind,
pub url: Url,
pub precise: Option<Precise>,
pub encoded: bool,
}Fields§
§kind: SourceKind§url: Url§precise: Option<Precise>§encoded: boolImplementations§
Source§impl EncodableSourceId
impl EncodableSourceId
pub fn new(url: Url, precise: Option<&'static str>, kind: SourceKind) -> Self
pub fn without_url_encoded( url: Url, precise: Option<&'static str>, kind: SourceKind, ) -> Self
pub fn from_url(string: &str) -> CargoResult<Self>
Trait Implementations§
Source§impl Debug for EncodableSourceId
impl Debug for EncodableSourceId
Source§impl<'de> Deserialize<'de> for EncodableSourceId
impl<'de> Deserialize<'de> for EncodableSourceId
Source§fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for EncodableSourceId
impl Display for EncodableSourceId
Source§impl Ord for EncodableSourceId
impl Ord for EncodableSourceId
Source§fn cmp(&self, other: &EncodableSourceId) -> Ordering
fn cmp(&self, other: &EncodableSourceId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EncodableSourceId
impl PartialEq for EncodableSourceId
Source§impl PartialOrd for EncodableSourceId
impl PartialOrd for EncodableSourceId
Source§impl Serialize for EncodableSourceId
impl Serialize for EncodableSourceId
impl Eq for EncodableSourceId
impl StructuralPartialEq for EncodableSourceId
Auto Trait Implementations§
impl Freeze for EncodableSourceId
impl RefUnwindSafe for EncodableSourceId
impl Send for EncodableSourceId
impl Sync for EncodableSourceId
impl Unpin for EncodableSourceId
impl UnwindSafe for EncodableSourceId
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more