pub struct CanonicalIdlDocument { /* private fields */ }Expand description
Strictly parsed IDL plus every authoritative v1 IDL projection.
Implementations§
Source§impl CanonicalIdlDocument
impl CanonicalIdlDocument
pub fn parse( bytes: &[u8], explicit_program_id: Option<&str>, ) -> Result<Self, HashError>
pub fn source_bytes(&self) -> &[u8] ⓘ
pub fn content_projection(&self) -> &Value
pub fn portable_projection(&self) -> &Value
pub fn parsed_idl(&self) -> &IdlSpec
pub fn program_id(&self) -> &str
pub fn normalized_snapshot(&self) -> &IdlSnapshotV1
pub fn hashes(&self) -> &IdlHashes
pub fn content_payload(&self) -> Result<Vec<u8>, HashError>
pub fn portable_payload(&self) -> Result<Vec<u8>, HashError>
pub fn normalized_payload(&self) -> Result<Vec<u8>, HashError>
Trait Implementations§
Source§impl Clone for CanonicalIdlDocument
impl Clone for CanonicalIdlDocument
Source§fn clone(&self) -> CanonicalIdlDocument
fn clone(&self) -> CanonicalIdlDocument
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 moreAuto Trait Implementations§
impl Freeze for CanonicalIdlDocument
impl RefUnwindSafe for CanonicalIdlDocument
impl Send for CanonicalIdlDocument
impl Sync for CanonicalIdlDocument
impl Unpin for CanonicalIdlDocument
impl UnsafeUnpin for CanonicalIdlDocument
impl UnwindSafe for CanonicalIdlDocument
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