pub struct Dive {
pub depth: u16,
pub bottom_time: u16,
}Expand description
single dive object
Fields§
§depth: u16depth of the dive expressed in feet of sea water
bottom_time: u16bottom time of the dive expressed in minutes
Implementations§
Source§impl Dive
impl Dive
Sourcepub fn no_decompression_limit(self) -> u16
pub fn no_decompression_limit(self) -> u16
Returns the no decompression limit of the Dive Object up to a depth of 190 feet of sea water No decompression limit is returned in minutes as u16 integer
Sourcepub fn group_letter(self) -> String
pub fn group_letter(self) -> String
returns the group letter of the Dive object. the depth is expressed in feet of sea water the bottom_time is expressed in minutes the group letter is returned as a String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Dive
impl<'de> Deserialize<'de> for Dive
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
impl Copy for Dive
Auto Trait Implementations§
impl Freeze for Dive
impl RefUnwindSafe for Dive
impl Send for Dive
impl Sync for Dive
impl Unpin for Dive
impl UnwindSafe for Dive
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