pub enum PackagePublishedPackagePackageVersionBody {
Variant0(String),
Variant1 {
attributes: PackagePublishedPackagePackageVersionBodyVariant1Attributes,
formatted: bool,
info: PackagePublishedPackagePackageVersionBodyVariant1Info,
repository: PackagePublishedPackagePackageVersionBodyVariant1Repository,
},
}
Expand description
PackagePublishedPackagePackageVersionBody
JSON schema
{
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"required": [
"_formatted",
"attributes",
"info",
"repository"
],
"properties": {
"_formatted": {
"type": "boolean"
},
"attributes": {
"type": "object",
"additionalProperties": false
},
"info": {
"type": "object",
"required": [
"collection",
"mode",
"name",
"oid",
"path",
"size",
"type"
],
"properties": {
"collection": {
"type": "boolean"
},
"mode": {
"type": "integer"
},
"name": {
"type": "string"
},
"oid": {
"type": "string"
},
"path": {
"type": "string"
},
"size": {
"type": [
"integer",
"null"
]
},
"type": {
"type": "string"
}
},
"additionalProperties": false
},
"repository": {
"type": "object",
"required": [
"repository"
],
"properties": {
"repository": {
"$ref": "#/definitions/repository"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
}
Variants§
Trait Implementations§
Source§impl Clone for PackagePublishedPackagePackageVersionBody
impl Clone for PackagePublishedPackagePackageVersionBody
Source§fn clone(&self) -> PackagePublishedPackagePackageVersionBody
fn clone(&self) -> PackagePublishedPackagePackageVersionBody
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<'de> Deserialize<'de> for PackagePublishedPackagePackageVersionBody
impl<'de> Deserialize<'de> for PackagePublishedPackagePackageVersionBody
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
Source§impl From<&PackagePublishedPackagePackageVersionBody> for PackagePublishedPackagePackageVersionBody
impl From<&PackagePublishedPackagePackageVersionBody> for PackagePublishedPackagePackageVersionBody
Source§fn from(value: &PackagePublishedPackagePackageVersionBody) -> Self
fn from(value: &PackagePublishedPackagePackageVersionBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackagePublishedPackagePackageVersionBody
impl RefUnwindSafe for PackagePublishedPackagePackageVersionBody
impl Send for PackagePublishedPackagePackageVersionBody
impl Sync for PackagePublishedPackagePackageVersionBody
impl Unpin for PackagePublishedPackagePackageVersionBody
impl UnwindSafe for PackagePublishedPackagePackageVersionBody
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