fn from()

in protobuf/src/delegate.rs [29:64]


    fn from(value: internal::LogGroupList<'a>) -> Self {
        Self {
            log_groups: value
                .log_groups
                .into_iter()
                .map(|log_group| LogGroup {
                    topic: log_group.topic.map(|s| s.to_string()),
                    source: log_group.source.map(|s| s.to_string()),
                    log_tags: log_group
                        .log_tags
                        .into_iter()
                        .map(|log_tag| LogTag {
                            key: log_tag.key.to_string(),
                            value: log_tag.value.to_string(),
                        })
                        .collect(),
                    logs: log_group
                        .logs
                        .into_iter()
                        .map(|log| Log {
                            time: log.time,
                            contents: log
                                .contents
                                .into_iter()
                                .map(|content| LogContent {
                                    key: content.key.to_string(),
                                    value: content.value.to_string(),
                                })
                                .collect(),
                            time_ns: log.time_ns,
                        })
                        .collect(),
                })
                .collect(),
        }
    }