[][src]Struct paperclip::v2::EmitterState

pub struct EmitterState {
    pub working_dir: PathBuf,
    pub ns_sep: &'static str,
    pub mod_prefix: &'static str,
    // some fields omitted
}

Holds the state for your schema emitter.

Fields

working_dir: PathBuf

Working directory - the path in which the necessary modules are generated.

ns_sep: &'static str

Namespace separation string.

mod_prefix: &'static str

Module prefix for using in generated code.

Methods

impl EmitterState[src]

pub fn set_url(&self, url: &str) -> Result<(), Error>[src]

Sets the base URL for this session.

NOTE: Once Emitter::generate is called, this gets overridden by host and basePath fields in spec (if they exist).

pub fn base_url(&self) -> String[src]

Base URL for this API.

NOTE: Once Emitter::generate is called, this gets overridden by host and basePath fields in spec (if they exist).

impl EmitterState[src]

pub fn set_meta(&self, meta: CrateMeta)[src]

Sets the crate metadata for this session.

Trait Implementations

impl<S> From<EmitterState> for DefaultEmitter<S>[src]

impl Clone for EmitterState[src]

impl Default for EmitterState[src]

impl Debug for EmitterState[src]

Auto Trait Implementations

impl !Send for EmitterState

impl !Sync for EmitterState

impl Unpin for EmitterState

impl !UnwindSafe for EmitterState

impl !RefUnwindSafe for EmitterState

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,