#[non_exhaustive]pub struct GoDependency {
pub import: String,
}Expand description
A Go module the generated code imports from, beyond the standard library.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.import: StringThe import path, as the substitution gives it.
Implementations§
Trait Implementations§
Source§impl Clone for GoDependency
impl Clone for GoDependency
Source§impl Debug for GoDependency
impl Debug for GoDependency
impl Eq for GoDependency
Source§impl Ord for GoDependency
impl Ord for GoDependency
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GoDependency
impl PartialEq for GoDependency
Source§impl PartialOrd for GoDependency
impl PartialOrd for GoDependency
impl StructuralPartialEq for GoDependency
Auto Trait Implementations§
impl Forget for GoDependency
impl Freeze for GoDependency
impl Move for GoDependency
impl RefUnwindSafe for GoDependency
impl Send for GoDependencywhere
RawVecInner: Send,
impl Sync for GoDependencywhere
RawVecInner: Sync,
impl Unpin for GoDependency
impl UnsafeUnpin for GoDependency
impl UnwindSafe for GoDependencywhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.