pub struct PluginRegistryV1Safe {
pub _key: Key,
pub registry: Vec<RegistryRecordSafe>,
pub external_registry: Vec<ExternalRegistryRecordSafe>,
}
Expand description
Plugin registry that an account can safely be deserialized into even if some plugins are not known. Note this skips over external plugin adapters for now, and will be updated when those are defined.
Fields§
§_key: Key
§registry: Vec<RegistryRecordSafe>
§external_registry: Vec<ExternalRegistryRecordSafe>
Implementations§
Source§impl PluginRegistryV1Safe
impl PluginRegistryV1Safe
pub fn from_bytes(data: &[u8]) -> Result<Self, Error>
Auto Trait Implementations§
impl Freeze for PluginRegistryV1Safe
impl RefUnwindSafe for PluginRegistryV1Safe
impl Send for PluginRegistryV1Safe
impl Sync for PluginRegistryV1Safe
impl Unpin for PluginRegistryV1Safe
impl UnwindSafe for PluginRegistryV1Safe
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more