mirror of
https://github.com/fluencelabs/interface-types
synced 2024-12-04 15:20:20 +00:00
add ctor for Interfaces
This commit is contained in:
parent
5758fa66c6
commit
bdd285810e
@ -139,3 +139,16 @@ pub struct Interfaces<'input> {
|
||||
/// All the implementations.
|
||||
pub implementations: Vec<Implementation>,
|
||||
}
|
||||
|
||||
impl Interfaces {
|
||||
pub fn from_version(version: semver::Version) -> Self {
|
||||
Self {
|
||||
version,
|
||||
types: Vec::new(),
|
||||
imports: Vec::new(),
|
||||
adapters: Vec::new(),
|
||||
exports: Vec::new(),
|
||||
implementations: Vec::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user