pub struct OptionInfo {
pub name: &'static str,
pub aliases: &'static [&'static str],
pub cli: Option<&'static str>,
pub python: Option<&'static str>,
pub node: Option<&'static str>,
}Expand description
How one option is spelled on each surface, where it differs from the wire
name — the central documentation the inventory test holds every surface
to. One row per ConvertOptions field (the test checks both ways).
Fields§
§name: &'static strThe field / wire name.
aliases: &'static [&'static str]Other wire spellings accepted on deserialization (serde(alias)).
cli: Option<&'static str>The CLI flag; None = the default --name-with-dashes.
python: Option<&'static str>The Python DocumentConverter(...) keyword argument; Some("") when
the Python surface has no such argument (the reason is in the row’s
comment); None = the field name itself.
node: Option<&'static str>The Node option (napi spells the field in camelCase); Some("") when
the Node surface has no such option (reason in the row’s comment);
None = the camelCase of the field name.
Trait Implementations§
Source§impl Clone for OptionInfo
impl Clone for OptionInfo
impl Copy for OptionInfo
Auto Trait Implementations§
impl Freeze for OptionInfo
impl RefUnwindSafe for OptionInfo
impl Send for OptionInfo
impl Sync for OptionInfo
impl Unpin for OptionInfo
impl UnsafeUnpin for OptionInfo
impl UnwindSafe for OptionInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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