pub struct ResponseHandshake {
pub common: ResponseCommon,
pub supported_versions: Vec<Version>,
pub supported_extensions: Option<HashMap<Version, HashMap<String, Vec<Version>>>>,
pub reasoner: Option<String>,
pub reasoner_version: Option<Version>,
pub shares_updates: Option<bool>,
pub shares_triggers: Option<bool>,
pub shares_violations: Option<bool>,
}
Expand description
Represents the reply to a Handshake-request.
Fields§
§common: ResponseCommon
§supported_versions: Vec<Version>
A list of the supported versions by the server.
supported_extensions: Option<HashMap<Version, HashMap<String, Vec<Version>>>>
A list of the supported extensions by the server.
The extensions are mapped per supported version, and map to a list of supported versions of that extension.
reasoner: Option<String>
The reasoner backend used. See appendix::Reasoner
for a list of reasoners that are known at the time of writing.
reasoner_version: Option<Version>
The version of the reasoner backend used.
Whether or not this server is, in general, inclined to give you updates for state changes of phrases.
Whether or not this server is, in general, inclined to give you updates on triggered Acts or Events.
Whether or not this server is, in general, inclined to give you updates on violations.
Trait Implementations§
Source§impl Clone for ResponseHandshake
impl Clone for ResponseHandshake
Source§fn clone(&self) -> ResponseHandshake
fn clone(&self) -> ResponseHandshake
Returns a copy of the value. Read more
1.0.0 · 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 ResponseHandshake
impl Debug for ResponseHandshake
Source§impl<'de> Deserialize<'de> for ResponseHandshake
impl<'de> Deserialize<'de> for ResponseHandshake
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
Auto Trait Implementations§
impl Freeze for ResponseHandshake
impl RefUnwindSafe for ResponseHandshake
impl Send for ResponseHandshake
impl Sync for ResponseHandshake
impl Unpin for ResponseHandshake
impl UnwindSafe for ResponseHandshake
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