pub struct ResourceVersion(/* private fields */);Expand description
Opaque version, generation, or ETag reported by a provider.
§Examples
use qubit_fs::metadata::ResourceVersion;
let version = ResourceVersion::new("v1");
assert_eq!("v1", version.as_str());Implementations§
Trait Implementations§
Source§impl AsRef<str> for ResourceVersion
impl AsRef<str> for ResourceVersion
Source§impl Clone for ResourceVersion
impl Clone for ResourceVersion
Source§impl Debug for ResourceVersion
impl Debug for ResourceVersion
Source§impl Display for ResourceVersion
impl Display for ResourceVersion
impl Eq for ResourceVersion
Source§impl From<&str> for ResourceVersion
impl From<&str> for ResourceVersion
Source§impl From<String> for ResourceVersion
impl From<String> for ResourceVersion
Source§impl Hash for ResourceVersion
impl Hash for ResourceVersion
Source§impl Ord for ResourceVersion
impl Ord for ResourceVersion
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ResourceVersion
impl PartialEq for ResourceVersion
Source§impl PartialOrd for ResourceVersion
impl PartialOrd for ResourceVersion
impl StructuralPartialEq for ResourceVersion
Auto Trait Implementations§
impl Freeze for ResourceVersion
impl RefUnwindSafe for ResourceVersion
impl Send for ResourceVersion
impl Sync for ResourceVersion
impl Unpin for ResourceVersion
impl UnsafeUnpin for ResourceVersion
impl UnwindSafe for ResourceVersion
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