pub struct PackageMeta {
pub name: String,
pub version: String,
pub description: Option<String>,
pub registry: Option<String>,
pub lex: Option<String>,
}Fields§
§name: String§version: String§description: Option<String>§registry: Option<String>Default registry URL for lex pkg publish when --registry is not supplied.
lex: Option<String>Minimum toolchain this package needs, as lex = "0.10.15".
Packages across the org have declared this for a long time; until
#803 nothing read it, because serde silently drops unknown fields.
A dependency that had moved onto a newer stdlib installed without
complaint into a project pinned older, and the mismatch surfaced
as unknown_field errors naming a function nobody in the
consuming repo had written.
Trait Implementations§
Source§impl Debug for PackageMeta
impl Debug for PackageMeta
Source§impl<'de> Deserialize<'de> for PackageMeta
impl<'de> Deserialize<'de> for PackageMeta
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
Auto Trait Implementations§
impl Freeze for PackageMeta
impl RefUnwindSafe for PackageMeta
impl Send for PackageMeta
impl Sync for PackageMeta
impl Unpin for PackageMeta
impl UnsafeUnpin for PackageMeta
impl UnwindSafe for PackageMeta
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