pub fn annotation(mut self, key: &str, val: &str) -> Self {
        if self.index_json.annotations.is_none() {
            self.index_json.annotations = Some(Annotations::new());
        }

        self.index_json
            .annotations
            .as_mut()
            .unwrap()
            .insert(key.to_string(), val.to_string());

        self
    }
/// Add an annotation to index.json
Add an annotation to index.json
Add an annotation to index . json
pub fn annotation(mut self, key: &str, val: &str) -> Self {
        if self.index_json.annotations.is_none() {
            self.index_json.annotations = Some(Annotations::new());
        }
        self.index_json
            .annotations
            .as_mut()
            .unwrap()
            .insert(key.to_string(), val.to_string());
        self
    }
pub fn annotation ( mut self , key : & str , val : & str ) -> Self { if self . index_json . annotations . is_none ( ) { self . index_json . annotations = Some ( Annotations :: new ( ) ) ; } self . index_json . annotations . as_mut ( ) . unwrap ( ) . insert ( key . to_string ( ) , val . to_string ( ) ) ; self }
Add an annotation to index.json
Add an annotation to index . json
mut self
key
&str
val
&str
mut self
key
&str
val
&str