Enum msi::ColumnCategory [] [src]

pub enum ColumnCategory {
    Text,
    UpperCase,
    LowerCase,
    Integer,
    DoubleInteger,
    Identifier,
    Property,
    Filename,
    WildCardFilename,
    Path,
    Paths,
    AnyPath,
    DefaultDir,
    RegPath,
    Formatted,
    KeyFormatted,
    Template,
    Condition,
    Guid,
    Version,
    Language,
    Binary,
    CustomSource,
    Cabinet,
    Shortcut,
    Url,
}

Indicates the format of a string-typed database column.

Variants

An unrestricted text string.

Examples

assert!(msi::ColumnCategory::Text.validate("Hello, World!"));

A text string containing no lowercase letters.

Examples

assert!(msi::ColumnCategory::UpperCase.validate("HELLO, WORLD!"));
assert!(!msi::ColumnCategory::UpperCase.validate("Hello, World!"));

A text string containing no uppercase letters.

Examples

assert!(msi::ColumnCategory::LowerCase.validate("hello, world!"));
assert!(!msi::ColumnCategory::LowerCase.validate("Hello, World!"));

A signed 16-bit integer.

Examples

assert!(msi::ColumnCategory::Integer.validate("32767"));
assert!(msi::ColumnCategory::Integer.validate("-47"));
assert!(!msi::ColumnCategory::Integer.validate("40000"));

A signed 32-bit integer.

Examples

assert!(msi::ColumnCategory::DoubleInteger.validate("2147483647"));
assert!(msi::ColumnCategory::DoubleInteger.validate("-99999"));
assert!(!msi::ColumnCategory::DoubleInteger.validate("3000000000"));

A string identifier (such as a table or column name). May only contain alphanumerics, underscores, and periods, and must start with a letter or underscore.

Examples

assert!(msi::ColumnCategory::Identifier.validate("HelloWorld"));
assert!(msi::ColumnCategory::Identifier.validate("_99.Bottles"));
assert!(!msi::ColumnCategory::Identifier.validate("3.14159"));

A string that is either an identifier (see above), or a reference to an environment variable (which consists of a % character followed by an identifier).

Examples

assert!(msi::ColumnCategory::Property.validate("HelloWorld"));
assert!(msi::ColumnCategory::Property.validate("%HelloWorld"));
assert!(!msi::ColumnCategory::Property.validate("Hello%World"));

The name of a file or directory.

A filename that can contain shell glob wildcards.

A string containing an absolute filepath.

A string containing a semicolon-separated list of absolute filepaths.

A string containing an absolute or relative filepath.

A string containing either a filename or an identifier.

A string containing a registry path.

A string containing special formatting escapes, such as environment variables.

Unknown.

Like Formatted, but allows additional escapes.

A string represeting a boolean predicate.

A hyphenated, uppercase GUID string, enclosed in curly braces.

A string containing a version number. The string must consist of at most four period-separated numbers, with each number being at most 65535.

Examples

assert!(msi::ColumnCategory::Version.validate("1"));
assert!(msi::ColumnCategory::Version.validate("1.22"));
assert!(msi::ColumnCategory::Version.validate("1.22.3"));
assert!(msi::ColumnCategory::Version.validate("1.22.3.444"));
assert!(!msi::ColumnCategory::Version.validate("1.99999"));
assert!(!msi::ColumnCategory::Version.validate(".12"));
assert!(!msi::ColumnCategory::Version.validate("1.2.3.4.5"));

A string containing a comma-separated list of deciaml language ID numbers.

A string that refers to a binary data stream.

A string that refers to a custom source.

A string that refers to a cabinet.

A string that refers to a shortcut.

A string containing a URL.

Methods

impl ColumnCategory
[src]

Returns true if the given string is valid to store in a database column with this category.

Trait Implementations

impl Clone for ColumnCategory
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ColumnCategory
[src]

impl Debug for ColumnCategory
[src]

Formats the value using the given formatter.

impl Eq for ColumnCategory
[src]

impl Hash for ColumnCategory
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for ColumnCategory
[src]

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

This method tests for !=.

impl Display for ColumnCategory
[src]

Formats the value using the given formatter. Read more

impl FromStr for ColumnCategory
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more