Struct indradb::Type[][src]

pub struct Type(pub String);

An edge or vertex type.

Types must be less than 256 characters long, and can only contain letters, numbers, dashes and underscores.

Methods

impl Type
[src]

Constructs a new type.

Arguments

  • t - The type, which must be less than 256 characters long.

Errors

Returns a ValidationError if the type is longer than 255 characters, or has invalid characters.

Trait Implementations

impl Eq for Type
[src]

impl PartialEq for Type
[src]

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

This method tests for !=.

impl Clone for Type
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Type
[src]

Formats the value using the given formatter. Read more

impl Hash for Type
[src]

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

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

impl Ord for Type
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for Type
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Default for Type
[src]

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

impl FromStr for Type
[src]

The associated error which can be returned from parsing.

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

Auto Trait Implementations

impl Send for Type

impl Sync for Type