pub struct ConnectivePreferencesConfig {
pub allowed: Option<HashMap<String, Vec<String>>>,
pub preferred: Option<HashMap<String, Vec<(String, f32)>>>,
}Fields§
§allowed: Option<HashMap<String, Vec<String>>>Per-RST-relation allowed connective pools. Keys are lowercase
RstRelation variant names: elaboration, contrast, cause,
result, concession, sequence, condition, background,
summary. Unknown keys are rejected at parse time so typos
surface as clear errors instead of silently no-op’ing.
preferred: Option<HashMap<String, Vec<(String, f32)>>>Per-RST-relation tie-breaker weights. Inner shape is array of
[connective, weight] pairs.
Trait Implementations§
Source§impl Clone for ConnectivePreferencesConfig
impl Clone for ConnectivePreferencesConfig
Source§fn clone(&self) -> ConnectivePreferencesConfig
fn clone(&self) -> ConnectivePreferencesConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnectivePreferencesConfig
impl Debug for ConnectivePreferencesConfig
Source§impl Default for ConnectivePreferencesConfig
impl Default for ConnectivePreferencesConfig
Source§fn default() -> ConnectivePreferencesConfig
fn default() -> ConnectivePreferencesConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConnectivePreferencesConfigwhere
ConnectivePreferencesConfig: Default,
impl<'de> Deserialize<'de> for ConnectivePreferencesConfigwhere
ConnectivePreferencesConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConnectivePreferencesConfig
impl RefUnwindSafe for ConnectivePreferencesConfig
impl Send for ConnectivePreferencesConfig
impl Sync for ConnectivePreferencesConfig
impl Unpin for ConnectivePreferencesConfig
impl UnsafeUnpin for ConnectivePreferencesConfig
impl UnwindSafe for ConnectivePreferencesConfig
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
Mutably borrows from an owned value. Read more