Image copyright Getty Images Image caption Caster Semenya is a two-time Olympic 800m champion

The result of Caster Semenya's landmark case against athletics' governing body will be published on Wednesday.

The double Olympic 800m champion is challenging the IAAF over its regulation restricting testosterone levels in female runners.

The rule will apply to women in track events from 400m up to the mile.

Semenya would either have to take medication to be eligible to compete in the 800m, change events or move to compete against men.

The Court of Arbitration for Sport says it will publish its ruling at midday on Wednesday.

Semenya won 5,000m gold at the South African Athletics Championships on Friday - a new distance for her that would not be affected by the IAAF rule change.

She has described the IAAF's new rules as "unfair" and said she wanted to "run naturally, the way I was born".

What are the proposed changes?

The rules would require athletes to keep their testosterone levels below a prescribed amount "for at least six months prior to competing".

The IAAF said in April 2018 that the new measures would stop women with high testosterone levels gaining a competitive advantage.

Testosterone is a hormone that increases muscle mass, strength and haemoglobin, which affects endurance.

The rules were intended to be brought in on 1 November 2018, but the legal challenge from Semenya and Athletics South Africa caused that to be delayed until 26 March.

The United Nations Human Rights Council has called the plans "unnecessary, harmful and humiliating" and South Africa's sports minister called them a "human rights violation".

Why did Semenya challenge the rule?

Image copyright Twitter/Caster Semenya Image caption Caster Semenya posted a photograph of herself and her lawyers on Twitter on 28 April

Commonwealth 800m and 1500m champion Semenya announced in June 2018 that she would challenge the IAAF, saying: "I am Mokgadi Caster Semenya. I am a woman and I am fast."

She was asked to take a gender test as an 18-year-old shortly before she won the 800m at the 2009 World Championships in Berlin.

Athletics South Africa president Leonard Chuene later admitted that he had lied to Semenya about the purpose of the test, having told her it was a random doping test.

The results were not released and Semenya was cleared to return in July 2010.

Research commissioned by the IAAF in July 2017 found that female athletes with high testosterone levels had a "competitive advantage".

However, critics of the governing body have said its stance is discriminatory, and highlighted the possible psychological effects on those who have to take the tests.