pub struct SourceName {
pub name: String,
pub version: Option<Version>,
}Expand description
Source package name. This is used in places where a control file needs to refer back to a source package. If the version is specified, it means that the binary control files’ version isn’t the same as the source version it was built from.
Fields§
§name: StringName of the source package.
version: Option<Version>Version of the package that the binary was generated from.
Trait Implementations§
Source§impl Clone for SourceName
impl Clone for SourceName
Source§fn clone(&self) -> SourceName
fn clone(&self) -> SourceName
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 SourceName
impl Debug for SourceName
Source§impl<'de> Deserialize<'de> for SourceName
impl<'de> Deserialize<'de> for SourceName
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SourceName
impl Display for SourceName
Source§impl FromStr for SourceName
impl FromStr for SourceName
Source§impl PartialEq for SourceName
impl PartialEq for SourceName
Source§impl Serialize for SourceName
impl Serialize for SourceName
impl StructuralPartialEq for SourceName
Auto Trait Implementations§
impl Freeze for SourceName
impl RefUnwindSafe for SourceName
impl Send for SourceName
impl Sync for SourceName
impl Unpin for SourceName
impl UnwindSafe for SourceName
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