#[non_exhaustive]pub enum SegState {
New,
Draft,
Translated,
Confirmed,
Reviewed,
SignedOff,
Rejected,
Locked,
}Expand description
Where a segment is in its life, from untouched to signed off. Monolingual files only use New, Draft,
Translated and Confirmed; bilingual files and review workflows use the rest.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
New
No target yet.
Draft
A target exists but nobody accepted it (machine output, TM match, work in progress).
Translated
The translator accepted the target.
Confirmed
Confirmed or approved by the translator (XLIFF 2 final, Trados ApprovedTranslation).
Reviewed
A reviewer checked it.
SignedOff
Final approval (XLIFF 1.2 signed-off).
Rejected
A reviewer sent it back; it needs work again.
Locked
Frozen: nobody edits it (context match, project lock).
Implementations§
Source§impl SegState
impl SegState
Sourcepub fn rank(self) -> u8
pub fn rank(self) -> u8
Position in the life cycle, used when segments are joined (the joined segment is as far along as its
least advanced part). Rejected ranks just above New: it has a target but needs work.
Sourcepub fn from_rank(r: u8) -> SegState
pub fn from_rank(r: u8) -> SegState
Inverse of SegState::rank; anything above the top rank is Locked.
Sourcepub fn is_accepted(self) -> bool
pub fn is_accepted(self) -> bool
True when a person accepted the target (translated or further along).