Struct azure_devops_rust_api::dashboard::widgets::Client
source · pub struct Client(_);Implementations§
source§impl Client
impl Client
sourcepub fn get_widgets(
&self,
organization: impl Into<String>,
project: impl Into<String>,
dashboard_id: impl Into<String>,
team: impl Into<String>
) -> RequestBuilder
pub fn get_widgets( &self, organization: impl Into<String>, project: impl Into<String>, dashboard_id: impl Into<String>, team: impl Into<String> ) -> RequestBuilder
Get widgets contained on the specified dashboard.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namedashboard_id: ID of the dashboard to read.team: Team ID or team name
sourcepub fn create(
&self,
organization: impl Into<String>,
body: impl Into<Widget>,
project: impl Into<String>,
dashboard_id: impl Into<String>,
team: impl Into<String>
) -> RequestBuilder
pub fn create( &self, organization: impl Into<String>, body: impl Into<Widget>, project: impl Into<String>, dashboard_id: impl Into<String>, team: impl Into<String> ) -> RequestBuilder
Create a widget on the specified dashboard.
Arguments:
organization: The name of the Azure DevOps organization.body: State of the widget to addproject: Project ID or project namedashboard_id: ID of dashboard the widget will be added to.team: Team ID or team name
sourcepub fn replace_widgets(
&self,
organization: impl Into<String>,
body: Vec<Widget>,
project: impl Into<String>,
dashboard_id: impl Into<String>,
team: impl Into<String>
) -> RequestBuilder
pub fn replace_widgets( &self, organization: impl Into<String>, body: Vec<Widget>, project: impl Into<String>, dashboard_id: impl Into<String>, team: impl Into<String> ) -> RequestBuilder
Replace the widgets on specified dashboard with the supplied widgets.
Arguments:
organization: The name of the Azure DevOps organization.body: Revised state of widgets to store for the dashboard.project: Project ID or project namedashboard_id: ID of the Dashboard to modify.team: Team ID or team name
sourcepub fn update_widgets(
&self,
organization: impl Into<String>,
body: Vec<Widget>,
project: impl Into<String>,
dashboard_id: impl Into<String>,
team: impl Into<String>
) -> RequestBuilder
pub fn update_widgets( &self, organization: impl Into<String>, body: Vec<Widget>, project: impl Into<String>, dashboard_id: impl Into<String>, team: impl Into<String> ) -> RequestBuilder
Update the supplied widgets on the dashboard using supplied state. State of existing Widgets not passed in the widget list is preserved.
Arguments:
organization: The name of the Azure DevOps organization.body: The set of widget states to update on the dashboard.project: Project ID or project namedashboard_id: ID of the Dashboard to modify.team: Team ID or team name
sourcepub fn get_widget(
&self,
organization: impl Into<String>,
project: impl Into<String>,
dashboard_id: impl Into<String>,
widget_id: impl Into<String>,
team: impl Into<String>
) -> RequestBuilder
pub fn get_widget( &self, organization: impl Into<String>, project: impl Into<String>, dashboard_id: impl Into<String>, widget_id: impl Into<String>, team: impl Into<String> ) -> RequestBuilder
Get the current state of the specified widget.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namedashboard_id: ID of the dashboard containing the widget.widget_id: ID of the widget to read.team: Team ID or team name
sourcepub fn replace_widget(
&self,
organization: impl Into<String>,
body: impl Into<Widget>,
project: impl Into<String>,
dashboard_id: impl Into<String>,
widget_id: impl Into<String>,
team: impl Into<String>
) -> RequestBuilder
pub fn replace_widget( &self, organization: impl Into<String>, body: impl Into<Widget>, project: impl Into<String>, dashboard_id: impl Into<String>, widget_id: impl Into<String>, team: impl Into<String> ) -> RequestBuilder
Override the state of the specified widget.
Arguments:
organization: The name of the Azure DevOps organization.body: State to be written for the widget.project: Project ID or project namedashboard_id: ID of the dashboard containing the widget.widget_id: ID of the widget to update.team: Team ID or team name
sourcepub fn update_widget(
&self,
organization: impl Into<String>,
body: impl Into<Widget>,
project: impl Into<String>,
dashboard_id: impl Into<String>,
widget_id: impl Into<String>,
team: impl Into<String>
) -> RequestBuilder
pub fn update_widget( &self, organization: impl Into<String>, body: impl Into<Widget>, project: impl Into<String>, dashboard_id: impl Into<String>, widget_id: impl Into<String>, team: impl Into<String> ) -> RequestBuilder
Perform a partial update of the specified widget.
Arguments:
organization: The name of the Azure DevOps organization.body: Description of the widget changes to apply. All non-null fields will be replaced.project: Project ID or project namedashboard_id: ID of the dashboard containing the widget.widget_id: ID of the widget to update.team: Team ID or team name
sourcepub fn delete(
&self,
organization: impl Into<String>,
project: impl Into<String>,
dashboard_id: impl Into<String>,
widget_id: impl Into<String>,
team: impl Into<String>
) -> RequestBuilder
pub fn delete( &self, organization: impl Into<String>, project: impl Into<String>, dashboard_id: impl Into<String>, widget_id: impl Into<String>, team: impl Into<String> ) -> RequestBuilder
Delete the specified widget.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namedashboard_id: ID of the dashboard containing the widget.widget_id: ID of the widget to update.team: Team ID or team name