Enum unixfs_v1::dir::MultipleMatchingLinks[][src]

pub enum MultipleMatchingLinks {
    Two {
        first: (usize, Cid),
        second: (usize, Cid),
    },
    OneValid {
        first: (usize, Cid),
        second: InvalidCidInLink,
    },
}
Expand description

Multiple matching links were found: at least two.

Variants

Two

Two valid links were found

Fields of Two

first: (usize, Cid)

The first link and its index in the links

second: (usize, Cid)

The second link and its index in the links

OneValid

Two links were matched but one of them could not be converted.

Fields of OneValid

first: (usize, Cid)

The first link and its index in the links

second: InvalidCidInLink

The failure to parse the other link

Implementations

Takes the first link, ignoring the other(s).

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

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.

Scrape the references from an impl Read. Read more

Should always be Self

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.