pub struct ForeignManifest {
pub program_id: Address,
pub expected_disc: u8,
pub expected_wire_fp: u64,
pub supported_epochs: RangeInclusive<u32>,
}Expand description
Opaque witness to a foreign program’s layout ABI.
Callers construct this once per foreign program they want to read
from, typically as a const from build-time-embedded metadata or
from the foreign program’s Hopper manifest account.
Fields§
§program_id: AddressOwner program that authored the layout. The account’s owner must match this address exactly.
expected_disc: u8Discriminator byte the foreign layout expects.
expected_wire_fp: u64Canonical wire-fingerprint hash from the foreign program’s
schema manifest. Matches AccountLayout::WIRE_FINGERPRINT on
the reader side.
supported_epochs: RangeInclusive<u32>Inclusive range of schema_epoch values the reader supports.
Accounts outside this range fail verification. the caller can
then fall back to a migration path or a different manifest.
Implementations§
Trait Implementations§
Source§impl Clone for ForeignManifest
impl Clone for ForeignManifest
Source§fn clone(&self) -> ForeignManifest
fn clone(&self) -> ForeignManifest
Returns a duplicate of the value. Read more
1.0.0 · 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 ForeignManifest
impl Debug for ForeignManifest
Source§impl PartialEq for ForeignManifest
impl PartialEq for ForeignManifest
impl Eq for ForeignManifest
impl StructuralPartialEq for ForeignManifest
Auto Trait Implementations§
impl Freeze for ForeignManifest
impl RefUnwindSafe for ForeignManifest
impl Send for ForeignManifest
impl Sync for ForeignManifest
impl Unpin for ForeignManifest
impl UnsafeUnpin for ForeignManifest
impl UnwindSafe for ForeignManifest
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