diff options
Diffstat (limited to 'src/resp_types.rs')
-rw-r--r-- | src/resp_types.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/resp_types.rs b/src/resp_types.rs index e24b303..cad9d36 100644 --- a/src/resp_types.rs +++ b/src/resp_types.rs @@ -143,3 +143,14 @@ impl<'a> AsRef<RespMinimalCommunityInfo<'a>> for RespCommunityInfoMaybeYour<'a> &self.base } } + +#[derive(Deserialize, Debug)] +pub struct RespInstanceSoftwareInfo<'a> { + pub name: Cow<'a, str>, + pub version: Cow<'a, str>, +} + +#[derive(Deserialize, Debug)] +pub struct RespInstanceInfo<'a> { + pub software: RespInstanceSoftwareInfo<'a>, +} |