[][src]Struct debugserver_types::Source

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 presentation_hint: Option<String>,
    pub source_reference: Option<f64>,
    pub sources: Option<Vec<Source>>,
}

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 sending 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 path of the source to be shown in the UI. It is only used to locate and load the content of the source if no sourceReference is specified (or its value is 0).

presentation_hint: Option<String>

An optional hint for how to present the source in the UI. A value of 'deemphasize' can be used to indicate that the source is not available or that it is skipped on stepping.

source_reference: Option<f64>

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

sources: Option<Vec<Source>>

An optional list of sources that are related to this source. These may be the source that generated this source.

Trait Implementations

impl PartialEq<Source> for Source[src]

impl Default for Source[src]

impl Clone for Source[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Source[src]

impl Serialize for Source[src]

impl<'de> Deserialize<'de> for Source[src]

Auto Trait Implementations

impl Sync for Source

impl Send for Source

impl Unpin for Source

impl RefUnwindSafe for Source

impl UnwindSafe for Source

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]