pub struct PackageUpdate {
pub name: Option<String>,
pub description: Option<String>,
pub readme: Option<String>,
pub source: Option<String>,
pub issues: Option<String>,
pub wiki: Option<String>,
}Expand description
A struct representing the fields that can be updated in a package.
Fields§
§name: Option<String>The name of the package.
description: Option<String>A short description of the package.
readme: Option<String>This package’s README, a long-form description of the package.
source: Option<String>A link to the source code repository of this package.
issues: Option<String>A link to this package’s issue tracker.
wiki: Option<String>A link to this package’s wiki.
Trait Implementations§
Source§impl Clone for PackageUpdate
impl Clone for PackageUpdate
Source§fn clone(&self) -> PackageUpdate
fn clone(&self) -> PackageUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PackageUpdate
impl Debug for PackageUpdate
Source§impl<'de> Deserialize<'de> for PackageUpdate
impl<'de> Deserialize<'de> for PackageUpdate
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
impl Eq for PackageUpdate
Source§impl Hash for PackageUpdate
impl Hash for PackageUpdate
Source§impl Ord for PackageUpdate
impl Ord for PackageUpdate
Source§fn cmp(&self, other: &PackageUpdate) -> Ordering
fn cmp(&self, other: &PackageUpdate) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PackageUpdate
impl PartialEq for PackageUpdate
Source§impl PartialOrd for PackageUpdate
impl PartialOrd for PackageUpdate
Source§impl Serialize for PackageUpdate
impl Serialize for PackageUpdate
impl StructuralPartialEq for PackageUpdate
Auto Trait Implementations§
impl Freeze for PackageUpdate
impl RefUnwindSafe for PackageUpdate
impl Send for PackageUpdate
impl Sync for PackageUpdate
impl Unpin for PackageUpdate
impl UnsafeUnpin for PackageUpdate
impl UnwindSafe for PackageUpdate
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