Struct stam::TransposeConfig
source · pub struct TransposeConfig {
pub source_side: TranspositionSide,
pub allow_simple: bool,
pub no_transposition: bool,
pub transposition_id: Option<String>,
pub resegmentation_id: Option<String>,
pub source_side_id: Option<String>,
pub existing_source_side: bool,
pub no_resegmentation: bool,
pub target_side_ids: Vec<String>,
pub debug: bool,
}Fields§
§source_side: TranspositionSide§allow_simple: boolAllow a simple transposition as output, by default this is set to false as we usually want to have an transposed annotation
no_transposition: boolDo not produce a transposition annotation, only output the transposed annotation (allow_simple must be set to false) This effectively throws away the provenance information.
transposition_id: Option<String>Identifier to assign to the newly outputted transposition (if not set, a random one will be generated)
resegmentation_id: Option<String>Identifier to assign to the newly outputted resegmentation (if any is created and this is not set, a random ID will be generated)
source_side_id: Option<String>Identifier to assign to the source annotation, if this is an existing one set existing_source_side.
existing_source_side: boolIndicates that the source part of the transposition is an existing annotation. This adds some extra constraints as not all existing annotations may be transposable without a resegmentation!
no_resegmentation: boolDo not produce a resegmentation annotation. If needed for a complex transposition, a resegmented annotation is still created, but
the resegmented version (used as source in the transposition) is not linked to the original source annotation. This effectively throws away provenance information.
This only comes into play if no_transposition == false , existing_source_side == true and source_side_id.is_some().
target_side_ids: Vec<String>Identifiers to assign to the annotation (if not set, random ones will be generated) The indices correspond to the various sides of the transposition that is being transposed over (in the same order, minus the source)
debug: boolEnable debug mode (to stderr)
Trait Implementations§
source§impl Clone for TransposeConfig
impl Clone for TransposeConfig
source§fn clone(&self) -> TransposeConfig
fn clone(&self) -> TransposeConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for TransposeConfig
impl Default for TransposeConfig
source§fn default() -> TransposeConfig
fn default() -> TransposeConfig
Auto Trait Implementations§
impl Freeze for TransposeConfig
impl RefUnwindSafe for TransposeConfig
impl Send for TransposeConfig
impl Sync for TransposeConfig
impl Unpin for TransposeConfig
impl UnwindSafe for TransposeConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more