Struct

std::fs::Metadata

source
exposed struct Metadata {
    kind: FileKind,
    size: u64,
}

What stat(2) says of a path: the kind of what it names, after following symbolic links, and its size in bytes.