pub struct JiraExpressionComplexity {
pub expensive_operations: String,
pub variables: Option<HashMap<String, String>>,
}
Expand description
JiraExpressionComplexity : Details about the complexity of the analysed Jira expression.
Fields§
§expensive_operations: String
Information that can be used to determine how many expensive operations the evaluation of the expression will perform. This information may be a formula or number. For example: * issues.map(i => i.comments)
performs as many expensive operations as there are issues on the issues list. So this parameter returns N
, where N
is the size of issue list. * new Issue(10010).comments
gets comments for one issue, so its complexity is 2
(1
to retrieve issue 10010 from the database plus 1
to get its comments).
variables: Option<HashMap<String, String>>
Variables used in the formula, mapped to the parts of the expression they refer to.
Implementations§
Source§impl JiraExpressionComplexity
impl JiraExpressionComplexity
Sourcepub fn new(expensive_operations: String) -> JiraExpressionComplexity
pub fn new(expensive_operations: String) -> JiraExpressionComplexity
Details about the complexity of the analysed Jira expression.
Trait Implementations§
Source§impl Clone for JiraExpressionComplexity
impl Clone for JiraExpressionComplexity
Source§fn clone(&self) -> JiraExpressionComplexity
fn clone(&self) -> JiraExpressionComplexity
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 JiraExpressionComplexity
impl Debug for JiraExpressionComplexity
Source§impl Default for JiraExpressionComplexity
impl Default for JiraExpressionComplexity
Source§fn default() -> JiraExpressionComplexity
fn default() -> JiraExpressionComplexity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JiraExpressionComplexity
impl<'de> Deserialize<'de> for JiraExpressionComplexity
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 JiraExpressionComplexity
impl PartialEq for JiraExpressionComplexity
Source§impl Serialize for JiraExpressionComplexity
impl Serialize for JiraExpressionComplexity
impl StructuralPartialEq for JiraExpressionComplexity
Auto Trait Implementations§
impl Freeze for JiraExpressionComplexity
impl RefUnwindSafe for JiraExpressionComplexity
impl Send for JiraExpressionComplexity
impl Sync for JiraExpressionComplexity
impl Unpin for JiraExpressionComplexity
impl UnwindSafe for JiraExpressionComplexity
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