#[non_exhaustive]pub struct FunnelQuery {
pub data_source: FunnelSource,
pub query_string: String,
pub steps: Vec<FunnelStep>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Updated funnel widget.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.data_source: FunnelSource
Source from which to query items to display in the funnel.
query_string: String
The widget query.
steps: Vec<FunnelStep>
List of funnel steps.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl FunnelQuery
impl FunnelQuery
Sourcepub fn new(
data_source: FunnelSource,
query_string: String,
steps: Vec<FunnelStep>,
) -> FunnelQuery
pub fn new( data_source: FunnelSource, query_string: String, steps: Vec<FunnelStep>, ) -> FunnelQuery
Examples found in repository?
examples/v1_dashboards_CreateDashboard_927141680.rs (line 23)
16async fn main() {
17 let body = Dashboard::new(
18 DashboardLayoutType::ORDERED,
19 "Example-Dashboard with funnel widget".to_string(),
20 vec![Widget::new(WidgetDefinition::FunnelWidgetDefinition(
21 Box::new(FunnelWidgetDefinition::new(
22 vec![FunnelWidgetRequest::new(
23 FunnelQuery::new(FunnelSource::RUM, "".to_string(), vec![]),
24 FunnelRequestType::FUNNEL,
25 )],
26 FunnelWidgetDefinitionType::FUNNEL,
27 )),
28 ))],
29 );
30 let configuration = datadog::Configuration::new();
31 let api = DashboardsAPI::with_config(configuration);
32 let resp = api.create_dashboard(body).await;
33 if let Ok(value) = resp {
34 println!("{:#?}", value);
35 } else {
36 println!("{:#?}", resp.unwrap_err());
37 }
38}
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for FunnelQuery
impl Clone for FunnelQuery
Source§fn clone(&self) -> FunnelQuery
fn clone(&self) -> FunnelQuery
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 FunnelQuery
impl Debug for FunnelQuery
Source§impl<'de> Deserialize<'de> for FunnelQuery
impl<'de> Deserialize<'de> for FunnelQuery
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FunnelQuery
impl PartialEq for FunnelQuery
Source§impl Serialize for FunnelQuery
impl Serialize for FunnelQuery
impl StructuralPartialEq for FunnelQuery
Auto Trait Implementations§
impl Freeze for FunnelQuery
impl RefUnwindSafe for FunnelQuery
impl Send for FunnelQuery
impl Sync for FunnelQuery
impl Unpin for FunnelQuery
impl UnwindSafe for FunnelQuery
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