pub fn from_image_list(
        tag: impl ToString,
        images: impl IntoImageList,
    ) -> Result<Summary, Error> {
        let image_protos = images.into_image_list()?;

        let values: Vec<_> = image_protos
            .into_iter()
            .enumerate()
            .map(|(index, image_proto)| Value {
                node_name: "".into(),
                tag: format!("{}/image/{}", tag.to_string(), index),
                metadata: None,
                value: Some(value::Value::Image(image_proto)),
            })
            .collect();

        let summary = Summary { value: values };
        Ok(summary)
    }
/// Build a summary with multiple images.
Build a summary with multiple images.
Build a summary with multiple images .
pub fn from_image_list(
        tag: impl ToString,
        images: impl IntoImageList,
    ) -> Result<Summary, Error> {
        let image_protos = images.into_image_list()?;
        let values: Vec<_> = image_protos
            .into_iter()
            .enumerate()
            .map(|(index, image_proto)| Value {
                node_name: "".into(),
                tag: format!("{}/image/{}", tag.to_string(), index),
                metadata: None,
                value: Some(value::Value::Image(image_proto)),
            })
            .collect();
        let summary = Summary { value: values };
        Ok(summary)
    }
pub fn from_image_list ( tag : impl ToString , images : impl IntoImageList , ) -> Result < Summary , Error > { let image_protos = images . into_image_list ( ) ? ; let values : Vec < _ > = image_protos . into_iter ( ) . enumerate ( ) . map ( | ( index , image_proto ) | Value { node_name : " " . into ( ) , tag : format ! ( " " tag to_string ( ) index ) , metadata : None , value : Some ( value :: Value :: Image ( image_proto ) ) , } ) . collect ( ) ; let summary = Summary { value : values } ; Ok ( summary ) }
Build a summary with multiple images.
Build a summary with multiple images .
tag
impl ToString
images
impl IntoImageList
tag
impl ToString
images
impl IntoImageList