pub struct GenerationContext<'a> {
pub graph: &'a ApiGraph,
pub options: &'a Value,
}Expand description
Inputs made available to a code generator invocation.
Fields§
§graph: &'a ApiGraphCanonical API graph to generate from.
options: &'a ValueGenerator-specific options, interpreted by concrete generators.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for GenerationContext<'a>
impl<'a> Clone for GenerationContext<'a>
Source§fn clone(&self) -> GenerationContext<'a>
fn clone(&self) -> GenerationContext<'a>
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<'a> Debug for GenerationContext<'a>
impl<'a> Debug for GenerationContext<'a>
impl<'a> Copy for GenerationContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for GenerationContext<'a>
impl<'a> RefUnwindSafe for GenerationContext<'a>
impl<'a> Send for GenerationContext<'a>
impl<'a> Sync for GenerationContext<'a>
impl<'a> Unpin for GenerationContext<'a>
impl<'a> UnsafeUnpin for GenerationContext<'a>
impl<'a> UnwindSafe for GenerationContext<'a>
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