pub struct VisualizerConfig {
pub base_url: String,
pub enable_compression: bool,
pub max_url_length: usize,
pub min_compression_size: usize,
}Available on crate feature
viz only.Expand description
Configuration for visualizer URL generation and compression. Controls how graphs are encoded and opened in web browsers.
Fields§
§base_url: StringBase URL for the visualizer (default: https://hydro.run/hydroscope)
enable_compression: boolWhether to enable compression for small graphs
max_url_length: usizeMaximum URL length before falling back to file-based approach
min_compression_size: usizeMinimum JSON size to attempt compression
Implementations§
Source§impl VisualizerConfig
impl VisualizerConfig
Sourcepub fn with_base_url(base_url: impl Into<String>) -> Self
pub fn with_base_url(base_url: impl Into<String>) -> Self
Create a new configuration with custom base URL
Sourcepub fn without_compression(self) -> Self
pub fn without_compression(self) -> Self
Disable compression (useful for debugging)
Trait Implementations§
Source§impl Clone for VisualizerConfig
impl Clone for VisualizerConfig
Source§fn clone(&self) -> VisualizerConfig
fn clone(&self) -> VisualizerConfig
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 VisualizerConfig
impl Debug for VisualizerConfig
Auto Trait Implementations§
impl Freeze for VisualizerConfig
impl RefUnwindSafe for VisualizerConfig
impl Send for VisualizerConfig
impl Sync for VisualizerConfig
impl Unpin for VisualizerConfig
impl UnwindSafe for VisualizerConfig
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> ToSinkBuild for T
impl<T> ToSinkBuild for T
§fn iter_to_sink_build(self) -> SendIterBuild<Self>
fn iter_to_sink_build(self) -> SendIterBuild<Self>
§fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
Starts a [
SinkBuild] adaptor chain to send all items from self as a [Stream].