Struct jenkins_api::view::CommonView
source · pub struct CommonView {
pub class: Option<String>,
pub description: Option<String>,
pub name: String,
pub url: String,
pub jobs: Vec<ShortJob>,
pub property: Vec<CommonProperty>,
/* private fields */
}
Expand description
A Jenkins View
with a list of ShortJob
Fields§
§class: Option<String>
_class provided by Jenkins
description: Option<String>
Description of the view
name: String
Name of the view
url: String
URL for the view
jobs: Vec<ShortJob>
List of jobs in the view
property: Vec<CommonProperty>
Properties of the view
Implementations§
source§impl CommonView
impl CommonView
sourcepub fn as_variant<T: Class + View>(&self) -> Result<T, Error>where
for<'de> T: Deserialize<'de>,
pub fn as_variant<T: Class + View>(&self) -> Result<T, Error>where
for<'de> T: Deserialize<'de>,
Read the object as one of it’s specialization implementing $trait
Trait Implementations§
source§impl Clone for CommonView
impl Clone for CommonView
source§fn clone(&self) -> CommonView
fn clone(&self) -> CommonView
Returns a copy 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 CommonView
impl Debug for CommonView
source§impl<'de> Deserialize<'de> for CommonView
impl<'de> Deserialize<'de> for CommonView
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