pub fn storage_usage(&self) -> Balance {
        (
            MIN_FARMER_LENGTH 
            + self.rewards.len() as u128 * (4 + MAX_ACCOUNT_LENGTH + 16)
            + self.seeds.len() as u128 * (4 + MAX_ACCOUNT_LENGTH + 16)
            + self.rps_count as u128 * (4 + 1 + 2 * MAX_ACCOUNT_LENGTH + 32)
        )
        * env::storage_byte_cost()
    }
/// Returns amount of yocto near necessary to cover storage used by this data structure.
Returns amount of yocto near necessary to cover storage used by this data structure.
Returns amount of yocto near necessary to cover storage used by this data structure .
pub fn storage_usage(&self) -> Balance {
        (
            MIN_FARMER_LENGTH 
            + self.rewards.len() as u128 * (4 + MAX_ACCOUNT_LENGTH + 16)
            + self.seeds.len() as u128 * (4 + MAX_ACCOUNT_LENGTH + 16)
            + self.rps_count as u128 * (4 + 1 + 2 * MAX_ACCOUNT_LENGTH + 32)
        )
        * env::storage_byte_cost()
    }
pub fn storage_usage ( & self ) -> Balance { ( MIN_FARMER_LENGTH + self . rewards . len ( ) as u128 * ( 4 + MAX_ACCOUNT_LENGTH + 16 ) + self . seeds . len ( ) as u128 * ( 4 + MAX_ACCOUNT_LENGTH + 16 ) + self . rps_count as u128 * ( 4 + 1 + 2 * MAX_ACCOUNT_LENGTH + 32 ) ) * env :: storage_byte_cost ( ) }
Returns amount of yocto near necessary to cover storage used by this data structure.
Returns amount of yocto near necessary to cover storage used by this data structure .
&self
&self