pub fn add_annotation(&mut self, key: &str, val: &str) {
        if self.annotations.is_none() {
            self.annotations = Some(Annotations::new());
        }

        self.annotations
            .as_mut()
            .unwrap()
            .insert(key.to_string(), val.to_string());
    }
/// Add an annotation to the Descriptor
Add an annotation to the Descriptor
Add an annotation to the Descriptor
pub fn add_annotation(&mut self, key: &str, val: &str) {
        if self.annotations.is_none() {
            self.annotations = Some(Annotations::new());
        }
        self.annotations
            .as_mut()
            .unwrap()
            .insert(key.to_string(), val.to_string());
    }
pub fn add_annotation ( & mut self , key : & str , val : & str ) { if self . annotations . is_none ( ) { self . annotations = Some ( Annotations :: new ( ) ) ; } self . annotations . as_mut ( ) . unwrap ( ) . insert ( key . to_string ( ) , val . to_string ( ) ) ; }
Add an annotation to the Descriptor
Add an annotation to the Descriptor
&mut self
key
&str
val
&str
&mut self
key
&str
val
&str