pub struct PreviewConfig {
pub enabled: bool,
pub timeout_ms: u64,
pub max_file_bytes: usize,
pub syntax_highlighting: bool,
pub cache_entries: usize,
pub file: FilePreviewConfig,
}Fields§
§enabled: bool§timeout_ms: u64§max_file_bytes: usize§syntax_highlighting: bool§cache_entries: usize§file: FilePreviewConfigTrait Implementations§
Source§impl Clone for PreviewConfig
impl Clone for PreviewConfig
Source§fn clone(&self) -> PreviewConfig
fn clone(&self) -> PreviewConfig
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 Debug for PreviewConfig
impl Debug for PreviewConfig
Source§impl PartialEq for PreviewConfig
impl PartialEq for PreviewConfig
impl Eq for PreviewConfig
impl StructuralPartialEq for PreviewConfig
Auto Trait Implementations§
impl Freeze for PreviewConfig
impl RefUnwindSafe for PreviewConfig
impl Send for PreviewConfig
impl Sync for PreviewConfig
impl Unpin for PreviewConfig
impl UnsafeUnpin for PreviewConfig
impl UnwindSafe for PreviewConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.