pub struct Builder { /* private fields */ }Expand description
A builder for PackageVersionHistory.
Implementations§
source§impl Builder
impl Builder
sourcepub fn package_version(self, input: impl Into<String>) -> Self
pub fn package_version(self, input: impl Into<String>) -> Self
Version of the package.
sourcepub fn set_package_version(self, input: Option<String>) -> Self
pub fn set_package_version(self, input: Option<String>) -> Self
Version of the package.
sourcepub fn commit_message(self, input: impl Into<String>) -> Self
pub fn commit_message(self, input: impl Into<String>) -> Self
A message associated with the version.
sourcepub fn set_commit_message(self, input: Option<String>) -> Self
pub fn set_commit_message(self, input: Option<String>) -> Self
A message associated with the version.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
Timestamp which tells creation time of the package version.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
Timestamp which tells creation time of the package version.
sourcepub fn build(self) -> PackageVersionHistory
pub fn build(self) -> PackageVersionHistory
Consumes the builder and constructs a PackageVersionHistory.