pub struct ProgramConfig {
pub approved_validators: BTreeSet<Pubkey>,
}Fields§
§approved_validators: BTreeSet<Pubkey>Implementations§
Source§impl ProgramConfig
impl ProgramConfig
pub fn size_with_discriminator(&self) -> usize
Source§impl ProgramConfig
impl ProgramConfig
pub fn to_bytes_with_discriminator<W: Write>( &self, writer: &mut W, ) -> Result<(), ProgramError>
Source§impl ProgramConfig
impl ProgramConfig
pub fn try_from_bytes_with_discriminator( data: &[u8], ) -> Result<Self, ProgramError>
Trait Implementations§
Source§impl BorshDeserialize for ProgramConfig
impl BorshDeserialize for ProgramConfig
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for ProgramConfig
impl BorshSerialize for ProgramConfig
Source§impl Debug for ProgramConfig
impl Debug for ProgramConfig
Source§impl Default for ProgramConfig
impl Default for ProgramConfig
Source§fn default() -> ProgramConfig
fn default() -> ProgramConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProgramConfig
impl RefUnwindSafe for ProgramConfig
impl Send for ProgramConfig
impl Sync for ProgramConfig
impl Unpin for ProgramConfig
impl UnsafeUnpin for ProgramConfig
impl UnwindSafe for ProgramConfig
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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