pub struct FittedAdapterRef {
pub schema_version: u32,
pub adapter_id: String,
pub adapter_version: String,
pub params_fingerprint: String,
pub backend: Option<FittedAdapterBackend>,
pub uri: Option<String>,
pub content_fingerprint: Option<String>,
pub size_bytes: Option<u64>,
pub plugin: Option<String>,
pub plugin_version: Option<String>,
pub metadata: BTreeMap<String, Value>,
}Fields§
§schema_version: u32§adapter_id: String§adapter_version: String§params_fingerprint: String§backend: Option<FittedAdapterBackend>§uri: Option<String>§content_fingerprint: Option<String>§size_bytes: Option<u64>§plugin: Option<String>§plugin_version: Option<String>§metadata: BTreeMap<String, Value>Implementations§
Source§impl FittedAdapterRef
impl FittedAdapterRef
pub fn validate(&self) -> Result<(), DataError>
Sourcepub fn validate_portable(&self) -> Result<(), DataError>
pub fn validate_portable(&self) -> Result<(), DataError>
Validate that the fitted adapter carries portable persistence metadata:
a backend, a safe relative URI and a content fingerprint. Legacy refs
that only carry inline state stay readable through Self::validate
but are refused here so persisted manifests can be moved with their
payloads.
Trait Implementations§
Source§impl Clone for FittedAdapterRef
impl Clone for FittedAdapterRef
Source§fn clone(&self) -> FittedAdapterRef
fn clone(&self) -> FittedAdapterRef
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 moreSource§impl Debug for FittedAdapterRef
impl Debug for FittedAdapterRef
Source§impl<'de> Deserialize<'de> for FittedAdapterRef
impl<'de> Deserialize<'de> for FittedAdapterRef
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FittedAdapterRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FittedAdapterRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FittedAdapterRef
Source§impl PartialEq for FittedAdapterRef
impl PartialEq for FittedAdapterRef
Source§fn eq(&self, other: &FittedAdapterRef) -> bool
fn eq(&self, other: &FittedAdapterRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FittedAdapterRef
impl Serialize for FittedAdapterRef
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 FittedAdapterRef
Auto Trait Implementations§
impl Freeze for FittedAdapterRef
impl RefUnwindSafe for FittedAdapterRef
impl Send for FittedAdapterRef
impl Sync for FittedAdapterRef
impl Unpin for FittedAdapterRef
impl UnsafeUnpin for FittedAdapterRef
impl UnwindSafe for FittedAdapterRef
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