You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: struct.rs
    path of file: ./repos/sway/sway-core/src/language/ty/declaration
    
    the code of the file until where you have to start completion: use std::{
    cmp::Ordering,
    hash::{Hash, Hasher},
};

use sway_types::{Ident, Named, Span, Spanned};

use crate::{
    engine_threading::*,
    error::module_can_be_changed,
    language::{CallPath, Visibility},
    semantic_analysis::type_check_context::MonomorphizeHelper,
    transform,
    type_system::*,
    Namespace,
};

#[derive(Clone, Debug)]
pub struct TyStructDecl {
    pub call_path: CallPath,
    pub fields: Vec<TyStructField>,
    pub type_parameters: Vec<TypeParameter>,
    pub visibility: Visibility,
    pub span: Spa
    
    fn cmp(&self, other: &Self, engines: &Engines) -> Ordering {
        let TyStructField {
            name: ln,
            type_argument: lta,
            // these fields are not compared because they aren't relevant for ordering
            span: _,
            attributes: _,
            visibility: _,
        } = self;
        let TyStructField {
            name: rn,
            type_argument: rta,
            // these fields are not compared because they aren't relevant for ordering
            span: _,
            attributes: _,
            visibility: _,
        } = other;
        ln.cmp(rn).then_with(|| lta.cmp(rta, engines))
    }