Enum taskchampion::server::AddVersionResult
source · pub enum AddVersionResult {
Ok(VersionId),
ExpectedParentVersion(VersionId),
}
Expand description
AddVersionResult is the response type from crate::server::Server::add_version
.
Variants§
Ok(VersionId)
OK, version added with the given ID
ExpectedParentVersion(VersionId)
Rejected; expected a version with the given parent version
Trait Implementations§
source§impl Debug for AddVersionResult
impl Debug for AddVersionResult
source§impl PartialEq for AddVersionResult
impl PartialEq for AddVersionResult
source§fn eq(&self, other: &AddVersionResult) -> bool
fn eq(&self, other: &AddVersionResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AddVersionResult
impl StructuralPartialEq for AddVersionResult
Auto Trait Implementations§
impl Freeze for AddVersionResult
impl RefUnwindSafe for AddVersionResult
impl Send for AddVersionResult
impl Sync for AddVersionResult
impl Unpin for AddVersionResult
impl UnwindSafe for AddVersionResult
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.