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
adapter_data: Option<Value>
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.
checksums: Option<Vec<Checksum>>
The checksums associated with this file.
name: Option<String>
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.
origin: Option<String>
The (optional) origin of this source: possible values 'internal module', 'inlined content from source map', etc.
path: Option<String>
The long (absolute) path of the source. It is not guaranteed that the source exists at this location.
source_reference: Option<f64>
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]
fn clone(&self) -> Source
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Source
[src]
fn eq(&self, __arg_0: &Source) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Source) -> bool
[src]
This method tests for !=
.