pub struct StringData {
    pub name_string: Option<String>,
    pub relative_path: Option<PathBuf>,
    pub working_dir: Option<PathBuf>,
    pub command_line_arguments: Option<String>,
    pub icon_location: Option<PathBuf>,
}
Expand description

StringData refers to a set of structures that convey user interface and path identification information. The presence of these optional structures is controlled by LinkFlags (section 2.1.1) in the ShellLinkHeader (section 2.1). The StringData structures conform to the following ABNF rules [RFC5234].

Fields

name_string: Option<String>

Description supplied by .lnk creator

relative_path: Option<PathBuf>

Relative path from the .lnk to the resource

working_dir: Option<PathBuf>

Working directory to use when launching the resource

command_line_arguments: Option<String>

Any arguments to be passed to the resource

icon_location: Option<PathBuf>

Icon displayed for the .lnk

Implementations

Build new StringData from data blob.

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

Returns the “default value” for a type. 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.

Performs the conversion.

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.