Type Alias holochain::prelude::ZomeLocation

source ·
pub type ZomeLocation = Location;
Expand description

Alias for a suitable representation of zome location

Aliased Type§

enum ZomeLocation {
    Bundled(PathBuf),
    Path(PathBuf),
    Url(String),
}

Variants§

§

Bundled(PathBuf)

Expect file to be part of this bundle

§

Path(PathBuf)

Get file from local filesystem (not bundled)

§

Url(String)

Get file from URL

Trait Implementations§

source§

impl Clone for Location

source§

fn clone(&self) -> Location

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Location

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Location

source§

fn deserialize<__D>( __deserializer: __D ) -> Result<Location, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Location

source§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more