pub struct ChromeConfig {
pub trace_config: Option<String>,
pub privacy_filtering_enabled: Option<bool>,
pub convert_to_legacy_json: Option<bool>,
pub client_priority: Option<i32>,
pub json_agent_label_filter: Option<String>,
}
Fields§
§trace_config: Option<String>
§privacy_filtering_enabled: Option<bool>
When enabled, the data source should only fill in fields in the output that are not potentially privacy sensitive.
convert_to_legacy_json: Option<bool>
Instead of emitting binary protobuf, convert the trace data to the legacy JSON format. Note that the trace data will still be returned as a series of TracePackets, but the embedded data will be JSON instead of serialized protobuf.
client_priority: Option<i32>
§json_agent_label_filter: Option<String>
Applicable only when using legacy JSON format. If |json_agent_label_filter| is not empty, only data pertaining to the specified tracing agent label (e.g. “traceEvents”) will be returned.
Implementations§
Source§impl ChromeConfig
impl ChromeConfig
Sourcepub fn trace_config(&self) -> &str
pub fn trace_config(&self) -> &str
Returns the value of trace_config
, or the default value if trace_config
is unset.
Sourcepub fn privacy_filtering_enabled(&self) -> bool
pub fn privacy_filtering_enabled(&self) -> bool
Returns the value of privacy_filtering_enabled
, or the default value if privacy_filtering_enabled
is unset.
Sourcepub fn convert_to_legacy_json(&self) -> bool
pub fn convert_to_legacy_json(&self) -> bool
Returns the value of convert_to_legacy_json
, or the default value if convert_to_legacy_json
is unset.
Sourcepub fn client_priority(&self) -> ClientPriority
pub fn client_priority(&self) -> ClientPriority
Returns the enum value of client_priority
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_client_priority(&mut self, value: ClientPriority)
pub fn set_client_priority(&mut self, value: ClientPriority)
Sets client_priority
to the provided enum value.
Sourcepub fn json_agent_label_filter(&self) -> &str
pub fn json_agent_label_filter(&self) -> &str
Returns the value of json_agent_label_filter
, or the default value if json_agent_label_filter
is unset.
Trait Implementations§
Source§impl Clone for ChromeConfig
impl Clone for ChromeConfig
Source§fn clone(&self) -> ChromeConfig
fn clone(&self) -> ChromeConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ChromeConfig
impl Debug for ChromeConfig
Source§impl Default for ChromeConfig
impl Default for ChromeConfig
Source§impl Message for ChromeConfig
impl Message for ChromeConfig
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.