pub struct AccountSchema {
pub type_name: String,
pub discriminator: Vec<u8>,
pub diff_fn: DiffFn,
}Expand description
Schema for a single account type — discriminator prefix + diff function.
Fields§
§type_name: StringHuman-readable type name (e.g., “Bank”, “TokenAccount”)
discriminator: Vec<u8>Discriminator bytes that identify this account type (typically 8 bytes for Anchor)
diff_fn: DiffFnDiff function: (pre_data, post_data) -> field deltas
Auto Trait Implementations§
impl Freeze for AccountSchema
impl !RefUnwindSafe for AccountSchema
impl Send for AccountSchema
impl Sync for AccountSchema
impl Unpin for AccountSchema
impl UnsafeUnpin for AccountSchema
impl !UnwindSafe for AccountSchema
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