def get_attrs(struct):
    """Returns the attributes of the structure as a dictionary.

    Args:
        struct: Struct instance.

    Returns:
        dict of str: object.
    """
    return struct._attrs