use ;
use ;
/// Encodes binary data into a Base64-encoded string.
///
/// # Type Parameters
/// * `T` - Any type that implements `AsRef<[u8]>`, allowing flexible input types such as `Vec<u8>`, `&[u8]`, and `String`.
///
/// # Arguments
/// * `data` - The input data to be encoded. It can be any type that can be referenced as a byte slice (`AsRef<[u8]>`).
///
/// # Returns
/// A `String` containing the Base64-encoded representation of the input data.
/// Finds a file entry in a given snapshot by its filename.
///
/// # Arguments
/// - `snapshot`: A reference to a `Snapshot`, which is a collection of `FileData` entries.
/// - `filename`: The name of the file to search for.
///
/// # Returns
/// - `Some(&FileData)`: A reference to the matching `FileData` entry if found.
/// - `None`: If no file with the specified filename exists in the snapshot.