pub struct PackageSubmissionMetadata {
pub author_name: String,
pub categories: Vec<String>,
pub communities: Vec<String>,
pub has_nsfw_content: bool,
pub upload_uuid: Uuid,
}
Fields§
§categories: Vec<String>
§communities: Vec<String>
§has_nsfw_content: bool
§upload_uuid: Uuid
Implementations§
Trait Implementations§
Source§impl Clone for PackageSubmissionMetadata
impl Clone for PackageSubmissionMetadata
Source§fn clone(&self) -> PackageSubmissionMetadata
fn clone(&self) -> PackageSubmissionMetadata
Returns a copy 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 PackageSubmissionMetadata
impl Debug for PackageSubmissionMetadata
Source§impl Default for PackageSubmissionMetadata
impl Default for PackageSubmissionMetadata
Source§fn default() -> PackageSubmissionMetadata
fn default() -> PackageSubmissionMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PackageSubmissionMetadata
impl<'de> Deserialize<'de> for PackageSubmissionMetadata
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 PackageSubmissionMetadata
impl StructuralPartialEq for PackageSubmissionMetadata
Auto Trait Implementations§
impl Freeze for PackageSubmissionMetadata
impl RefUnwindSafe for PackageSubmissionMetadata
impl Send for PackageSubmissionMetadata
impl Sync for PackageSubmissionMetadata
impl Unpin for PackageSubmissionMetadata
impl UnwindSafe for PackageSubmissionMetadata
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.