pub enum PackageNugetMetadataValue {
Variant0(bool),
Variant1(String),
Variant2(i64),
Variant3 {
branch: Option<String>,
commit: Option<String>,
type_: Option<String>,
url: Option<String>,
},
}
Expand description
PackageNugetMetadataValue
JSON schema
{
"oneOf": [
{
"type": "boolean"
},
{
"type": "string"
},
{
"type": "integer"
},
{
"type": "object",
"properties": {
"branch": {
"type": "string"
},
"commit": {
"type": "string"
},
"type": {
"type": "string"
},
"url": {
"type": "string"
}
},
"additionalProperties": false
}
]
}
Variants§
Trait Implementations§
Source§impl Clone for PackageNugetMetadataValue
impl Clone for PackageNugetMetadataValue
Source§fn clone(&self) -> PackageNugetMetadataValue
fn clone(&self) -> PackageNugetMetadataValue
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 PackageNugetMetadataValue
impl Debug for PackageNugetMetadataValue
Source§impl<'de> Deserialize<'de> for PackageNugetMetadataValue
impl<'de> Deserialize<'de> for PackageNugetMetadataValue
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<&PackageNugetMetadataValue> for PackageNugetMetadataValue
impl From<&PackageNugetMetadataValue> for PackageNugetMetadataValue
Source§fn from(value: &PackageNugetMetadataValue) -> Self
fn from(value: &PackageNugetMetadataValue) -> Self
Converts to this type from the input type.
Source§impl From<bool> for PackageNugetMetadataValue
impl From<bool> for PackageNugetMetadataValue
Source§impl From<i64> for PackageNugetMetadataValue
impl From<i64> for PackageNugetMetadataValue
Auto Trait Implementations§
impl Freeze for PackageNugetMetadataValue
impl RefUnwindSafe for PackageNugetMetadataValue
impl Send for PackageNugetMetadataValue
impl Sync for PackageNugetMetadataValue
impl Unpin for PackageNugetMetadataValue
impl UnwindSafe for PackageNugetMetadataValue
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