pub enum Target<'a> {
Show 16 variants
Program(&'a str),
Programs(&'a [&'a str]),
Event(&'a str),
Events(&'a [&'a str]),
VEN(&'a str),
VENs(&'a [&'a str]),
Group(&'a str),
Groups(&'a [&'a str]),
Resource(&'a str),
Resources(&'a [&'a str]),
ServiceArea(&'a str),
ServiceAreas(&'a [&'a str]),
PowerServiceLocation(&'a str),
PowerServiceLocations(&'a [&'a str]),
Other(&'a str, &'a str),
Others(&'a str, &'a [&'a str]),
}Expand description
Target for a query to the VTN
Variants§
Program(&'a str)
Target by a specific program name
Programs(&'a [&'a str])
Target by a list of program names
Event(&'a str)
Target by a specific event name
Events(&'a [&'a str])
Target by a list of event names
VEN(&'a str)
Target by a specific VEN name
VENs(&'a [&'a str])
Target by a list of VEN names
Group(&'a str)
Target by a specific group name
Groups(&'a [&'a str])
Target by a list of group names
Resource(&'a str)
Target by a specific resource name
Resources(&'a [&'a str])
Target by a list of resource names
ServiceArea(&'a str)
Target by a specific service area
ServiceAreas(&'a [&'a str])
Target by a list of service areas
PowerServiceLocation(&'a str)
Target by a specific power service location
PowerServiceLocations(&'a [&'a str])
Target by a list of power service locations
Other(&'a str, &'a str)
Target using some other kind of privately defined target type, using a single target value
Others(&'a str, &'a [&'a str])
Target using some other kind of privately defined target type, with a list of values
Implementations§
Source§impl Target<'_>
impl Target<'_>
Sourcepub fn target_label(&self) -> TargetType
pub fn target_label(&self) -> TargetType
Get the target label for this specific target
Sourcepub fn target_values(&self) -> &[&str]
pub fn target_values(&self) -> &[&str]
Get the list of target values for this specific target