seednaut 0.1.1

A command-line utility for inspecting, verifying, and extracting Seedvault Android backups
// This file is @generated by prost-build.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackupMediaFile {
    #[prost(enumeration = "backup_media_file::MediaType", tag = "1")]
    pub r#type: i32,
    #[prost(string, tag = "2")]
    pub name: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub path: ::prost::alloc::string::String,
    #[prost(int64, tag = "4")]
    pub last_modified: i64,
    #[prost(string, tag = "5")]
    pub owner_package_name: ::prost::alloc::string::String,
    #[prost(bool, tag = "6")]
    pub is_favorite: bool,
    #[prost(int64, tag = "7")]
    pub size: i64,
    #[prost(string, tag = "8")]
    pub volume: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "9")]
    pub chunk_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(int32, tag = "10")]
    pub zip_index: i32,
}
/// Nested message and enum types in `BackupMediaFile`.
pub mod backup_media_file {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum MediaType {
        Images = 0,
        Video = 1,
        Audio = 2,
        Downloads = 3,
    }
    impl MediaType {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Self::Images => "IMAGES",
                Self::Video => "VIDEO",
                Self::Audio => "AUDIO",
                Self::Downloads => "DOWNLOADS",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "IMAGES" => Some(Self::Images),
                "VIDEO" => Some(Self::Video),
                "AUDIO" => Some(Self::Audio),
                "DOWNLOADS" => Some(Self::Downloads),
                _ => None,
            }
        }
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackupDocumentFile {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub path: ::prost::alloc::string::String,
    #[prost(int64, tag = "3")]
    pub last_modified: i64,
    #[prost(int64, tag = "4")]
    pub size: i64,
    #[prost(string, tag = "5")]
    pub volume: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "6")]
    pub chunk_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(int32, tag = "7")]
    pub zip_index: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackupSnapshot {
    #[prost(int32, tag = "1")]
    pub version: i32,
    #[prost(string, tag = "2")]
    pub name: ::prost::alloc::string::String,
    #[prost(message, repeated, tag = "3")]
    pub media_files: ::prost::alloc::vec::Vec<BackupMediaFile>,
    #[prost(message, repeated, tag = "4")]
    pub document_files: ::prost::alloc::vec::Vec<BackupDocumentFile>,
    #[prost(int64, tag = "5")]
    pub size: i64,
    #[prost(int64, tag = "6")]
    pub time_start: i64,
    #[prost(int64, tag = "7")]
    pub time_end: i64,
}