pub struct GoVersionParser;
Expand description
Version parser for Go releases
Implementations§
Source§impl GoVersionParser
impl GoVersionParser
Sourcepub fn parse_versions(
json: &Value,
include_prerelease: bool,
) -> Result<Vec<VersionInfo>>
pub fn parse_versions( json: &Value, include_prerelease: bool, ) -> Result<Vec<VersionInfo>>
Parse Go versions from the official API response
Trait Implementations§
Source§impl Clone for GoVersionParser
impl Clone for GoVersionParser
Source§fn clone(&self) -> GoVersionParser
fn clone(&self) -> GoVersionParser
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 GoVersionParser
impl Debug for GoVersionParser
Source§impl Default for GoVersionParser
impl Default for GoVersionParser
Source§impl VersionParser for GoVersionParser
impl VersionParser for GoVersionParser
Source§fn parse_versions(
&self,
json: &Value,
include_prerelease: bool,
) -> Result<Vec<VersionInfo>>
fn parse_versions( &self, json: &Value, include_prerelease: bool, ) -> Result<Vec<VersionInfo>>
Parse versions from JSON data
Auto Trait Implementations§
impl Freeze for GoVersionParser
impl RefUnwindSafe for GoVersionParser
impl Send for GoVersionParser
impl Sync for GoVersionParser
impl Unpin for GoVersionParser
impl UnwindSafe for GoVersionParser
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