pub struct LiveSpecV2 {
pub schema: String,
pub compiler_contract_version: String,
pub wire_contract_version: String,
pub programs: Vec<ProgramRequirementV2>,
pub entities: Vec<PortableEntity>,
pub program_adapters: Vec<ProgramAdapterV2>,
}Fields§
§schema: String§compiler_contract_version: String§wire_contract_version: String§programs: Vec<ProgramRequirementV2>§entities: Vec<PortableEntity>§program_adapters: Vec<ProgramAdapterV2>Implementations§
Source§impl LiveSpecV2
impl LiveSpecV2
pub fn new( programs: Vec<ProgramRequirementV2>, entities: Vec<PortableEntity>, program_adapters: Vec<ProgramAdapterV2>, ) -> Self
pub fn validate(&self) -> Result<(), ArtifactError>
pub fn view_ids(&self) -> BTreeSet<&str>
Trait Implementations§
Source§impl Clone for LiveSpecV2
impl Clone for LiveSpecV2
Source§fn clone(&self) -> LiveSpecV2
fn clone(&self) -> LiveSpecV2
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 LiveSpecV2
impl Debug for LiveSpecV2
Source§impl<'de> Deserialize<'de> for LiveSpecV2
impl<'de> Deserialize<'de> for LiveSpecV2
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
Source§impl PartialEq for LiveSpecV2
impl PartialEq for LiveSpecV2
Source§impl Serialize for LiveSpecV2
impl Serialize for LiveSpecV2
impl StructuralPartialEq for LiveSpecV2
Auto Trait Implementations§
impl Freeze for LiveSpecV2
impl RefUnwindSafe for LiveSpecV2
impl Send for LiveSpecV2
impl Sync for LiveSpecV2
impl Unpin for LiveSpecV2
impl UnsafeUnpin for LiveSpecV2
impl UnwindSafe for LiveSpecV2
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