pub struct ApiVersionBuilder { /* private fields */ }
Expand description
Builder for creating API versions
Implementations§
Source§impl ApiVersionBuilder
impl ApiVersionBuilder
Sourcepub fn release_date(self, date: DateTime<Utc>) -> Self
pub fn release_date(self, date: DateTime<Utc>) -> Self
Set release date
Sourcepub fn stability(self, stability: StabilityLevel) -> Self
pub fn stability(self, stability: StabilityLevel) -> Self
Set stability level
Sourcepub fn support_status(self, status: SupportStatus) -> Self
pub fn support_status(self, status: SupportStatus) -> Self
Set support status
Sourcepub fn end_of_life(self, date: DateTime<Utc>) -> Self
pub fn end_of_life(self, date: DateTime<Utc>) -> Self
Set end of life date
Sourcepub fn breaking_change(self, change: &str) -> Self
pub fn breaking_change(self, change: &str) -> Self
Add a breaking change
Sourcepub fn new_feature(self, feature: &str) -> Self
pub fn new_feature(self, feature: &str) -> Self
Add a new feature
Sourcepub fn deprecated_feature(self, feature: &str) -> Self
pub fn deprecated_feature(self, feature: &str) -> Self
Add a deprecated feature
Sourcepub fn min_clientversion(self, version: Version) -> Self
pub fn min_clientversion(self, version: Version) -> Self
Set minimum client version
Sourcepub fn max_clientversion(self, version: Version) -> Self
pub fn max_clientversion(self, version: Version) -> Self
Set maximum client version
Auto Trait Implementations§
impl Freeze for ApiVersionBuilder
impl RefUnwindSafe for ApiVersionBuilder
impl Send for ApiVersionBuilder
impl Sync for ApiVersionBuilder
impl Unpin for ApiVersionBuilder
impl UnwindSafe for ApiVersionBuilder
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more