Struct rosetta_types::version::Version
source · pub struct Version {
pub rosetta_version: String,
pub node_version: String,
pub middleware_version: Option<String>,
pub metadata: Option<Value>,
}
Expand description
Version : The Version object is utilized to inform the client of the versions of different components of the Rosetta implementation.
Fields§
§rosetta_version: String
The rosetta_version is the version of the Rosetta interface the implementation adheres to. This can be useful for clients looking to reliably parse responses.
node_version: String
The node_version is the canonical version of the node runtime. This can help clients manage deployments.
middleware_version: Option<String>
When a middleware server is used to adhere to the Rosetta interface, it should return its version here. This can help clients manage deployments.
metadata: Option<Value>
Any other information that may be useful about versioning of dependent services should be returned here.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Version
impl<'de> Deserialize<'de> for Version
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<Version> for Version
impl PartialEq<Version> for Version
impl Eq for Version
impl StructuralEq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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