pub enum AionDependency {
Version(String),
Path(String),
}Expand description
Where the generated crate takes the aion SDK crates from.
Variants§
Version(String)
The published crates at one exact version.
The version is the generating aion binary’s own: it is the only
version whose SDK surface the emitted code was written against, so
pinning anything else would be a guess about an API the generator
never saw.
Path(String)
A local checkout’s crates/ directory, as the generated crate’s
Cargo.toml should spell it (relative to the crate root, or
absolute).
This is what an author working inside the aion tree needs, and what makes a generated crate compile against an SDK that is not published yet.
Trait Implementations§
Source§impl Clone for AionDependency
impl Clone for AionDependency
Source§fn clone(&self) -> AionDependency
fn clone(&self) -> AionDependency
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AionDependency
impl Debug for AionDependency
impl Eq for AionDependency
Source§impl PartialEq for AionDependency
impl PartialEq for AionDependency
impl StructuralPartialEq for AionDependency
Auto Trait Implementations§
impl Freeze for AionDependency
impl RefUnwindSafe for AionDependency
impl Send for AionDependency
impl Sync for AionDependency
impl Unpin for AionDependency
impl UnsafeUnpin for AionDependency
impl UnwindSafe for AionDependency
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.