diff --git a/rust/nvtcache/src/nvt.rs b/rust/nvtcache/src/nvt.rs index cebe44eae..582c50090 100644 --- a/rust/nvtcache/src/nvt.rs +++ b/rust/nvtcache/src/nvt.rs @@ -72,6 +72,7 @@ impl NvtPref { } impl NvtRef { + /// Return a new NvtRef object with the passed values pub fn new(ref_type: String, ref_id: String, ref_text: String) -> Result { Ok(NvtRef { ref_type, @@ -79,6 +80,18 @@ impl NvtRef { ref_text, }) } + /// Return the type of the NvtRef + pub fn get_type(&mut self) -> String { + return self.ref_type; + } + /// Return the id of the NvtRef + pub fn get_id(&mut self) -> String { + return self.ref_id; + } + /// Return the text of the NvtRef + pub fn get_text(&mut self) -> String { + return self.ref_text; + } } impl NvtSeverity {