Struct debugserver_types::Source [] [src]

pub struct Source {
    pub adapter_data: Option<Value>,
    pub checksums: Option<Vec<Checksum>>,
    pub name: Option<String>,
    pub origin: Option<String>,
    pub path: Option<String>,
    pub source_reference: Option<f64>,
}

A Source is a descriptor for source code. It is returned from the debug adapter as part of a StackFrame and it is used by clients when specifying breakpoints.

Fields

Optional data that a debug adapter might want to loop through the client. The client should leave the data intact and persist it across sessions. The client should not interpret the data.

The checksums associated with this file.

The short name of the source. Every source returned from the debug adapter has a name. When specifying a source to the debug adapter this name is optional.

The (optional) origin of this source: possible values 'internal module', 'inlined content from source map', etc.

The long (absolute) path of the source. It is not guaranteed that the source exists at this location.

If sourceReference > 0 the contents of the source can be retrieved through the SourceRequest. A sourceReference is only valid for a session, so it must not be used to persist a source.

Trait Implementations

impl Clone for Source
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Source
[src]

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

This method tests for !=.

impl Debug for Source
[src]

Formats the value using the given formatter.

impl Default for Source
[src]

Returns the "default value" for a type. Read more