mirror of
https://github.com/fluencelabs/interface-types
synced 2024-12-04 15:20:20 +00:00
add docs
This commit is contained in:
parent
90850764ca
commit
ab76621355
@ -141,6 +141,7 @@ pub struct Interfaces<'input> {
|
||||
}
|
||||
|
||||
impl Interfaces<'_> {
|
||||
/// Creates a new Interfaces where version comes from this package version.
|
||||
pub fn new() -> Self {
|
||||
use std::str::FromStr;
|
||||
|
||||
@ -157,6 +158,7 @@ impl Interfaces<'_> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Creates a new Interfaces from the provided version.
|
||||
pub fn from_version(version: semver::Version) -> Self {
|
||||
Self {
|
||||
version,
|
||||
|
Loading…
Reference in New Issue
Block a user