pub struct CfsSessionGetResponse {
pub name: String,
pub configuration: Option<Configuration>,
pub ansible: Option<Ansible>,
pub target: Option<Target>,
pub status: Option<Status>,
pub tags: Option<HashMap<String, String>>,
pub debug_on_failure: bool,
pub logs: Option<String>,
}Fields§
§name: String§configuration: Option<Configuration>§ansible: Option<Ansible>§target: Option<Target>§status: Option<Status>§debug_on_failure: bool§logs: Option<String>Implementations§
Source§impl CfsSessionGetResponse
impl CfsSessionGetResponse
Sourcepub fn get_start_time(&self) -> Option<String>
pub fn get_start_time(&self) -> Option<String>
Get start time
Sourcepub fn get_completion_time(&self) -> Option<String>
pub fn get_completion_time(&self) -> Option<String>
Get completion time
pub fn status(&self) -> Option<String>
Sourcepub fn get_result_id_vec(&self) -> Vec<String>
pub fn get_result_id_vec(&self) -> Vec<String>
Returns list of result_ids
Sourcepub fn get_first_result_id(&self) -> Option<String>
pub fn get_first_result_id(&self) -> Option<String>
Returns list of result_ids
Sourcepub fn get_targets(&self) -> Option<Vec<String>>
pub fn get_targets(&self) -> Option<Vec<String>>
Returns list of targets (either groups or xnames)
Sourcepub fn get_target_hsm(&self) -> Option<Vec<String>>
pub fn get_target_hsm(&self) -> Option<Vec<String>>
Returns list of HSM groups targeted
Sourcepub fn get_target_xname(&self) -> Option<Vec<String>>
pub fn get_target_xname(&self) -> Option<Vec<String>>
Returns list of xnames targeted
Sourcepub fn is_target_def_image(&self) -> bool
pub fn is_target_def_image(&self) -> bool
Returns ‘true’ if the CFS session target definition is ‘image’. Otherwise (target definiton dynamic) will return ‘false’
Sourcepub fn get_target_def(&self) -> Option<String>
pub fn get_target_def(&self) -> Option<String>
Returns target definition of the CFS session: image –> CFS session to build an image dynamic –> CFS session to configure a node
pub fn get_configuration_name(&self) -> Option<String>
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns ‘true’ if CFS session succeeded.
Returns false when any of the status fields are missing,
rather than panicking.
Trait Implementations§
Source§impl Clone for CfsSessionGetResponse
impl Clone for CfsSessionGetResponse
Source§fn clone(&self) -> CfsSessionGetResponse
fn clone(&self) -> CfsSessionGetResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CfsSessionGetResponse
impl Debug for CfsSessionGetResponse
Source§impl<'de> Deserialize<'de> for CfsSessionGetResponse
impl<'de> Deserialize<'de> for CfsSessionGetResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CfsSessionGetResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CfsSessionGetResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CfsSessionGetResponse
impl Serialize for CfsSessionGetResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CfsSessionGetResponse
impl RefUnwindSafe for CfsSessionGetResponse
impl Send for CfsSessionGetResponse
impl Sync for CfsSessionGetResponse
impl Unpin for CfsSessionGetResponse
impl UnsafeUnpin for CfsSessionGetResponse
impl UnwindSafe for CfsSessionGetResponse
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