1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
use super::SignatureInformation;
use jsonrpc::Nullable;

/// Signature help represents the signature of something
/// callable. There can be multiple signature but only one
/// active and only one active parameter.
#[derive(Debug, Serialize)]
pub struct SignatureHelp {
    /// One or more signatures.
    pub signatures: Vec<SignatureInformation>,

    /// The active signature. Set to `null` if no
    /// signatures exist.
    pub active_signature: Nullable<i32>,

    /// The active parameter of the active signature. Set to `null`
    /// if the active signature has no parameters.
    pub active_parameter: Nullable<i32>,
}