#[non_exhaustive]pub struct ViewVersion {
pub changelog: String,
pub id: Uuid,
pub major: i32,
pub minor: i32,
pub patch: i32,
pub status: VersionStatus,
}Expand description
A release version as returned by the version-listing endpoints: the version numbers, publication status, and changelog.
JSON schema
{
"description": "A release version as returned by the version-listing endpoints: the\nversion numbers, publication status, and changelog.",
"type": "object",
"required": [
"changelog",
"id",
"major",
"minor",
"patch",
"status"
],
"properties": {
"changelog": {
"description": "Changelog text for this version, as Markdown.",
"type": "string"
},
"id": {
"description": "Unique identifier of the version.",
"type": "string",
"format": "uuid"
},
"major": {
"description": "Major version number.",
"type": "integer",
"format": "int32"
},
"minor": {
"description": "Minor version number.",
"type": "integer",
"format": "int32"
},
"patch": {
"description": "Patch version number.",
"type": "integer",
"format": "int32"
},
"status": {
"description": "Publication status: `draft`, `published`, or `yanked`.",
"$ref": "#/components/schemas/VersionStatus"
}
}
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.changelog: StringChangelog text for this version, as Markdown.
id: UuidUnique identifier of the version.
major: i32Major version number.
minor: i32Minor version number.
patch: i32Patch version number.
status: VersionStatusPublication status: draft, published, or yanked.
Implementations§
Source§impl ViewVersion
impl ViewVersion
Sourcepub fn builder() -> ViewVersionBuilder
pub fn builder() -> ViewVersionBuilder
Create an instance of ViewVersion using the builder syntax
Trait Implementations§
Source§impl Clone for ViewVersion
impl Clone for ViewVersion
Source§fn clone(&self) -> ViewVersion
fn clone(&self) -> ViewVersion
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 ViewVersion
impl Debug for ViewVersion
Source§impl<'de> Deserialize<'de> for ViewVersion
impl<'de> Deserialize<'de> for ViewVersion
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 ViewVersion
impl RefUnwindSafe for ViewVersion
impl Send for ViewVersion
impl Sync for ViewVersion
impl Unpin for ViewVersion
impl UnsafeUnpin for ViewVersion
impl UnwindSafe for ViewVersion
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