pub struct BaselineStore {
pub baselines: BTreeMap<String, BaselineEntry>,
}Fields§
§baselines: BTreeMap<String, BaselineEntry>Implementations§
Source§impl BaselineStore
impl BaselineStore
pub fn load(path: &Path) -> Self
Sourcepub fn save(&self, path: &Path) -> Result<()>
pub fn save(&self, path: &Path) -> Result<()>
§Errors
Returns an error if the file cannot be serialized or written.
pub fn set(&mut self, entry: BaselineEntry)
pub fn get(&self, name: &str) -> Option<&BaselineEntry>
pub fn remove(&mut self, name: &str) -> bool
Trait Implementations§
Source§impl Clone for BaselineStore
impl Clone for BaselineStore
Source§fn clone(&self) -> BaselineStore
fn clone(&self) -> BaselineStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BaselineStore
impl Debug for BaselineStore
Source§impl Default for BaselineStore
impl Default for BaselineStore
Source§fn default() -> BaselineStore
fn default() -> BaselineStore
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BaselineStore
impl<'de> Deserialize<'de> for BaselineStore
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BaselineStore
impl RefUnwindSafe for BaselineStore
impl Send for BaselineStore
impl Sync for BaselineStore
impl Unpin for BaselineStore
impl UnsafeUnpin for BaselineStore
impl UnwindSafe for BaselineStore
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