pub struct ProgramSpecV1 {
pub schema: String,
pub program_id: String,
pub idl_content_hash: HashId<IdlContent>,
pub portable_idl_hash: HashId<IdlPortable>,
pub normalized_idl_hash: HashId<IdlNormalized>,
pub idl_snapshot: IdlSnapshotV1,
pub pdas: BTreeMap<String, PdaDefinitionV1>,
pub instructions: Vec<InstructionDefinitionV1>,
}Fields§
§schema: String§program_id: String§idl_content_hash: HashId<IdlContent>§portable_idl_hash: HashId<IdlPortable>§normalized_idl_hash: HashId<IdlNormalized>§idl_snapshot: IdlSnapshotV1§pdas: BTreeMap<String, PdaDefinitionV1>§instructions: Vec<InstructionDefinitionV1>Implementations§
Source§impl ProgramSpecV1
impl ProgramSpecV1
pub fn from_document(document: &CanonicalIdlDocument) -> Self
pub fn hash(&self) -> Result<HashId<ProgramSpec>, HashError>
pub fn validate(&self) -> Result<(), HashError>
pub fn oss_release(&self) -> Result<OssGeneratedProgramReleaseV1, HashError>
pub fn oss_release_hash(&self) -> Result<HashId<ProgramRelease>, HashError>
pub fn oss_identity(&self) -> Result<OssProgramIdentityV1, HashError>
Trait Implementations§
Source§impl Clone for ProgramSpecV1
impl Clone for ProgramSpecV1
Source§fn clone(&self) -> ProgramSpecV1
fn clone(&self) -> ProgramSpecV1
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 ProgramSpecV1
impl Debug for ProgramSpecV1
Source§impl<'de> Deserialize<'de> for ProgramSpecV1
impl<'de> Deserialize<'de> for ProgramSpecV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProgramSpecV1
impl RefUnwindSafe for ProgramSpecV1
impl Send for ProgramSpecV1
impl Sync for ProgramSpecV1
impl Unpin for ProgramSpecV1
impl UnsafeUnpin for ProgramSpecV1
impl UnwindSafe for ProgramSpecV1
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