pub struct UnsupportedHazelcastApiManifest {
pub version: u16,
pub entries: Vec<UnsupportedHazelcastApi>,
pub supported_mappings: Vec<SupportedHazelcastApiMapping>,
}Expand description
Versioned manifest of supported mappings and unsupported Hazelcast APIs.
Fields§
§version: u16Manifest version.
entries: Vec<UnsupportedHazelcastApi>Unsupported APIs.
supported_mappings: Vec<SupportedHazelcastApiMapping>Supported source-level migration mappings.
Implementations§
Source§impl UnsupportedHazelcastApiManifest
impl UnsupportedHazelcastApiManifest
Sourcepub fn parse(contents: &str) -> Result<Self, JavaMigrationContractError>
pub fn parse(contents: &str) -> Result<Self, JavaMigrationContractError>
Parse a manifest and reject unknown future versions.
Sourcepub fn checked_in() -> Result<Self, JavaMigrationContractError>
pub fn checked_in() -> Result<Self, JavaMigrationContractError>
Parse the checked-in manifest.
Sourcepub fn find(&self, api: &str) -> Option<&UnsupportedHazelcastApi>
pub fn find(&self, api: &str) -> Option<&UnsupportedHazelcastApi>
Find a manifest entry by API name.
Sourcepub fn find_supported(&self, api: &str) -> Option<&SupportedHazelcastApiMapping>
pub fn find_supported(&self, api: &str) -> Option<&SupportedHazelcastApiMapping>
Find a supported mapping entry by API name.
Trait Implementations§
Source§impl Clone for UnsupportedHazelcastApiManifest
impl Clone for UnsupportedHazelcastApiManifest
Source§fn clone(&self) -> UnsupportedHazelcastApiManifest
fn clone(&self) -> UnsupportedHazelcastApiManifest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Eq for UnsupportedHazelcastApiManifest
Source§impl PartialEq for UnsupportedHazelcastApiManifest
impl PartialEq for UnsupportedHazelcastApiManifest
Source§fn eq(&self, other: &UnsupportedHazelcastApiManifest) -> bool
fn eq(&self, other: &UnsupportedHazelcastApiManifest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UnsupportedHazelcastApiManifest
Auto Trait Implementations§
impl Freeze for UnsupportedHazelcastApiManifest
impl RefUnwindSafe for UnsupportedHazelcastApiManifest
impl Send for UnsupportedHazelcastApiManifest
impl Sync for UnsupportedHazelcastApiManifest
impl Unpin for UnsupportedHazelcastApiManifest
impl UnsafeUnpin for UnsupportedHazelcastApiManifest
impl UnwindSafe for UnsupportedHazelcastApiManifest
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