pub fn validate(&self) -> bool {
    if self.hour.len() != 2 || self.minute.len() != 2 {
      return false;
    }
    return self.validate_numbers();
   }
/// Validates a created `TimeOffsetAmount`.
///
/// # Examples
///
/// ```
/// use tomllib::types::{TimeOffsetAmount, PosNeg};
///
/// let offset_wrong = TimeOffsetAmount{pos_neg: PosNeg::Pos, hour: "31".into(), minute: "30".into()};
/// let offset_right = TimeOffsetAmount{pos_neg: PosNeg::Pos, hour: "07".into(), minute: "00".into()};
/// assert!(!offset_wrong.validate());
/// assert!(offset_right.validate());
/// ```
Validates a created `TimeOffsetAmount`.
Validates a created ` TimeOffsetAmount ` .
pub fn validate(&self) -> bool {
    if self.hour.len() != 2 || self.minute.len() != 2 {
      return false;
    }
    return self.validate_numbers();
   }
pub fn validate ( & self ) -> bool { if self . hour . len ( ) != 2 || self . minute . len ( ) != 2 { return false ; } return self . validate_numbers ( ) ; }
Validates a created `TimeOffsetAmount`.
Validates a created ` TimeOffsetAmount ` .
&self
&self
examples
```
use tomllib::types::{TimeOffsetAmount, PosNeg}.

let offset_wrong = TimeOffsetAmount{pos_neg: PosNeg::Pos, hour: "31".into(), minute: "30".into()};
let offset_right = TimeOffsetAmount{pos_neg: PosNeg::Pos, hour: "07".into(), minute: "00".into()};
assert!(!offset_wrong.validate());
assert!(offset_right.validate());
```
` ` ` use tomllib :: types :: { TimeOffsetAmount PosNeg } . let offset_wrong = TimeOffsetAmount { pos_neg : PosNeg :: Pos hour : " 31 " . into () minute : " 30 " . into () } ; let offset_right = TimeOffsetAmount { pos_neg : PosNeg :: Pos hour : " 07 " . into () minute : " 00 " . into () } ; assert! ( !offset_wrong . validate () ) ; assert! ( offset_right . validate () ) ; ` ` `