pub struct LanguageDetectionRequest<'a> {
pub path: &'a str,
pub extension: Option<&'a str>,
pub explicit_override: Option<&'a str>,
pub content_prefix: Option<&'a [u8]>,
}Expand description
Typed language detection request.
Fields§
§path: &'a strRepository or native path.
extension: Option<&'a str>Pre-normalized extension supplied by a scanner, when available.
explicit_override: Option<&'a str>Explicit canonical ID or alias, when configured.
content_prefix: Option<&'a [u8]>Bounded content prefix captured by the owning source read.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for LanguageDetectionRequest<'a>
impl<'a> Clone for LanguageDetectionRequest<'a>
Source§fn clone(&self) -> LanguageDetectionRequest<'a>
fn clone(&self) -> LanguageDetectionRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for LanguageDetectionRequest<'a>
impl<'a> Debug for LanguageDetectionRequest<'a>
Source§impl<'a> Default for LanguageDetectionRequest<'a>
impl<'a> Default for LanguageDetectionRequest<'a>
Source§fn default() -> LanguageDetectionRequest<'a>
fn default() -> LanguageDetectionRequest<'a>
Returns the “default value” for a type. Read more
impl<'a> Copy for LanguageDetectionRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for LanguageDetectionRequest<'a>
impl<'a> RefUnwindSafe for LanguageDetectionRequest<'a>
impl<'a> Send for LanguageDetectionRequest<'a>
impl<'a> Sync for LanguageDetectionRequest<'a>
impl<'a> Unpin for LanguageDetectionRequest<'a>
impl<'a> UnwindSafe for LanguageDetectionRequest<'a>
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