pub struct Scope {
    pub column: Option<i64>,
    pub end_column: Option<i64>,
    pub end_line: Option<i64>,
    pub expensive: bool,
    pub indexed_variables: Option<i64>,
    pub line: Option<i64>,
    pub name: String,
    pub named_variables: Option<i64>,
    pub presentation_hint: Option<String>,
    pub source: Option<Source>,
    pub variables_reference: i64,
}
Expand description

A Scope is a named container for variables. Optionally a scope can map to a source or a range within a source.

Fields

column: Option<i64>

Optional start column of the range covered by this scope.

end_column: Option<i64>

Optional end column of the range covered by this scope.

end_line: Option<i64>

Optional end line of the range covered by this scope.

expensive: bool

If true, the number of variables in this scope is large or expensive to retrieve.

indexed_variables: Option<i64>

The number of indexed variables in this scope. The client can use this optional information to present the variables in a paged UI and fetch them in chunks.

line: Option<i64>

Optional start line of the range covered by this scope.

name: String

Name of the scope such as ‘Arguments’, ‘Locals’, or ‘Registers’. This string is shown in the UI as is and can be translated.

named_variables: Option<i64>

The number of named variables in this scope. The client can use this optional information to present the variables in a paged UI and fetch them in chunks.

presentation_hint: Option<String>

An optional hint for how to present this scope in the UI. If this attribute is missing, the scope is shown with a generic UI.

source: Option<Source>

Optional source for this scope.

variables_reference: i64

The variables of this scope can be retrieved by passing the value of variablesReference to the VariablesRequest.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more