Struct upspin::UpspinPath [] [src]

pub struct UpspinPath { /* fields omitted */ }

The path to a file in upspin

Methods

impl UpspinPath
[src]

[src]

Returns the owner portion of the UpspinPath.

For "augie@upspin.io/Images/Augie/small.jpg" this would be "augie".

[src]

Returns the path portion of the UpspinPath.

For "augie@upspin.io/Images/Augie/small.jpg" this would be "Images/Augie/small.jpg".

[src]

Returns the file name of the UpspinPath.

For "augie@upspin.io/Images/Augie/small.jpg" this would be "small.jpg".

[src]

Returns the full upspin path of the UpspinPath.

For "augie@upspin.io/Images/Augie/small.jpg" this would be "augie@upspin.io/Images/Augie/small.jpg".

[src]

Checks if the file is publicly available.

[src]

Downloads the file from upspin to the provided output path.

Only downloads publicly available files.

Trait Implementations

impl FromStr for UpspinPath
[src]

The associated error which can be returned from parsing.

[src]

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

Auto Trait Implementations

impl Send for UpspinPath

impl Sync for UpspinPath