pub struct GoModRetractDirective { /* private fields */ }Expand description
retract directive metadata.
Implementations§
Source§impl GoModRetractDirective
impl GoModRetractDirective
Sourcepub const fn new(version: GoModuleVersion) -> GoModRetractDirective
pub const fn new(version: GoModuleVersion) -> GoModRetractDirective
Creates a retract directive.
Sourcepub fn with_rationale(self, rationale: impl AsRef<str>) -> GoModRetractDirective
pub fn with_rationale(self, rationale: impl AsRef<str>) -> GoModRetractDirective
Adds optional rationale text.
Sourcepub const fn version(&self) -> &GoModuleVersion
pub const fn version(&self) -> &GoModuleVersion
Returns the module version.
Trait Implementations§
Source§impl Clone for GoModRetractDirective
impl Clone for GoModRetractDirective
Source§fn clone(&self) -> GoModRetractDirective
fn clone(&self) -> GoModRetractDirective
Returns a duplicate of the value. Read more
1.0.0 · 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 GoModRetractDirective
impl Debug for GoModRetractDirective
Source§impl PartialEq for GoModRetractDirective
impl PartialEq for GoModRetractDirective
impl Eq for GoModRetractDirective
impl StructuralPartialEq for GoModRetractDirective
Auto Trait Implementations§
impl Freeze for GoModRetractDirective
impl RefUnwindSafe for GoModRetractDirective
impl Send for GoModRetractDirective
impl Sync for GoModRetractDirective
impl Unpin for GoModRetractDirective
impl UnsafeUnpin for GoModRetractDirective
impl UnwindSafe for GoModRetractDirective
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