pub struct IndexMetadata {
pub minimum_client_version: Version,
}
Fields§
§minimum_client_version: Version
The minimum version of a client which must be used in order to properly access the index. If a client finds itself with a lower version than this minimum, it must prompt the user for an update before it can proceed.
This version number corresponds to the crate version of the
fluvio-package-index
crate.
Implementations§
Source§impl IndexMetadata
impl IndexMetadata
Sourcepub fn update_required(&self) -> bool
pub fn update_required(&self) -> bool
This checks whether this version of the client is compatible with the given index.
This will return true
if the minimum_client_version
of the index is
greater than this version of the fluvio-package-index
crate.
Trait Implementations§
Source§impl Debug for IndexMetadata
impl Debug for IndexMetadata
Source§impl<'de> Deserialize<'de> for IndexMetadata
impl<'de> Deserialize<'de> for IndexMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IndexMetadata
impl RefUnwindSafe for IndexMetadata
impl Send for IndexMetadata
impl Sync for IndexMetadata
impl Unpin for IndexMetadata
impl UnwindSafe for IndexMetadata
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