pub struct VersionRange {
pub start_version: i64,
pub end_version: i64,
}Expand description
VersionRange : A range of versions to delete (start inclusive, end exclusive). Special values: - start_version: 0 with end_version: -1 means ALL versions
Fields§
§start_version: i64Start version of the range (inclusive). Use 0 to start from the first version.
end_version: i64End version of the range (exclusive). Use -1 to indicate all versions up to and including the latest.
Implementations§
Source§impl VersionRange
impl VersionRange
Sourcepub fn new(start_version: i64, end_version: i64) -> VersionRange
pub fn new(start_version: i64, end_version: i64) -> VersionRange
A range of versions to delete (start inclusive, end exclusive). Special values: - start_version: 0 with end_version: -1 means ALL versions
Trait Implementations§
Source§impl Clone for VersionRange
impl Clone for VersionRange
Source§fn clone(&self) -> VersionRange
fn clone(&self) -> VersionRange
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 VersionRange
impl Debug for VersionRange
Source§impl Default for VersionRange
impl Default for VersionRange
Source§fn default() -> VersionRange
fn default() -> VersionRange
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VersionRange
impl<'de> Deserialize<'de> for VersionRange
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VersionRange, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VersionRange, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VersionRange
impl PartialEq for VersionRange
Source§impl Serialize for VersionRange
impl Serialize for VersionRange
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for VersionRange
Auto Trait Implementations§
impl Freeze for VersionRange
impl RefUnwindSafe for VersionRange
impl Send for VersionRange
impl Sync for VersionRange
impl Unpin for VersionRange
impl UnsafeUnpin for VersionRange
impl UnwindSafe for VersionRange
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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