pub enum Access {
    Public,
    Restricted,
}
Expand description

Represents access level for the to-be publish package. Passed to wasm-pack publish as a flag, e.g. --access=public.

Variants

Public

Access is granted to all. All unscoped packages must be public.

Restricted

Access is restricted, granted via npm permissions. Must be a scoped package.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

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.