pub fn max_age(&self) -> Option<i64> {
        for attr in self.attributes.clone() {
            if attr.name.as_str() == "Max-Age" {
                if let Some(v) = attr.value {
                    if let Ok(v2) = v.as_str().parse::<i64>() {
                        return Some(v2);
                    }
                }
            }
        }
        None
    }
///
/// return the optional max_age attribute as i64 type
///
/// if the value is not a valid integer, the attribute is simply ignored
///
return the optional max_age attribute as i64 type
if the value is not a valid integer, the attribute is simply ignored
return the optional max_age attribute as i64 type if the value is not a valid integer the attribute is simply ignored
pub fn max_age(&self) -> Option<i64> {
        for attr in self.attributes.clone() {
            if attr.name.as_str() == "Max-Age" {
                if let Some(v) = attr.value {
                    if let Ok(v2) = v.as_str().parse::<i64>() {
                        return Some(v2);
                    }
                }
            }
        }
        None
    }
pub fn max_age ( & self ) -> Option < i64 > { for attr in self . attributes . clone ( ) { if attr . name . as_str ( ) == " " { if let Some ( v ) = attr . value { if let Ok ( v2 ) = v . as_str ( ) . parse :: < i64 > ( ) { return Some ( v2 ) ; } } } } None }
return the optional max_age attribute as i64 type
if the value is not a valid integer, the attribute is simply ignored
return the optional max_age attribute as i64 type if the value is not a valid integer the attribute is simply ignored
&self
&self