pub struct ClamVersion {
pub version_tag: String,
pub build_number: u64,
pub release_date: DateTime<Utc>,
}
Expand description
ClamVersion
provdes all of the Clam meta-information provided by the VERSION
command
Fields§
§version_tag: String
The name and version number of the responding daemon
build_number: u64
The build number of the responding daemon
release_date: DateTime<Utc>
The release date for the responding daemon
Implementations§
Source§impl ClamVersion
impl ClamVersion
Sourcepub fn parse(v_string: String) -> ClamResult<Self>
pub fn parse(v_string: String) -> ClamResult<Self>
ClamVersion::parse
takes a string returned from the Clam VERSION
command and parses it
into a strongly typed struct assuming it retains a standard format of
version tag/build no/publish datetime
Trait Implementations§
Source§impl Debug for ClamVersion
impl Debug for ClamVersion
Source§impl PartialEq for ClamVersion
impl PartialEq for ClamVersion
Source§impl PartialOrd for ClamVersion
impl PartialOrd for ClamVersion
impl StructuralPartialEq for ClamVersion
Auto Trait Implementations§
impl Freeze for ClamVersion
impl RefUnwindSafe for ClamVersion
impl Send for ClamVersion
impl Sync for ClamVersion
impl Unpin for ClamVersion
impl UnwindSafe for ClamVersion
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