pub fn normalised(&self) -> Result<ResourceRequirements<f64>> {
        let requests = Resources {
            memory: parse_memory(&self.requests.memory.to_string())?,
            cpu: parse_cpu(&self.requests.cpu.to_string())?,
        };
        let limits = Resources {
            memory: parse_memory(&self.limits.memory.to_string())?,
            cpu: parse_cpu(&self.limits.cpu.to_string())?,
        };
        Ok(ResourceRequirements { requests, limits })
    }
/// Convert shorthand strings to raw number of cores and Bytes of memory
Convert shorthand strings to raw number of cores and Bytes of memory
Convert shorthand strings to raw number of cores and Bytes of memory
pub fn normalised(&self) -> Result<ResourceRequirements<f64>> {
        let requests = Resources {
            memory: parse_memory(&self.requests.memory.to_string())?,
            cpu: parse_cpu(&self.requests.cpu.to_string())?,
        };
        let limits = Resources {
            memory: parse_memory(&self.limits.memory.to_string())?,
            cpu: parse_cpu(&self.limits.cpu.to_string())?,
        };
        Ok(ResourceRequirements { requests, limits })
    }
pub fn normalised ( & self ) -> Result < ResourceRequirements < f64 > > { let requests = Resources { memory : parse_memory ( & self . requests . memory . to_string ( ) ) ? , cpu : parse_cpu ( & self . requests . cpu . to_string ( ) ) ? , } ; let limits = Resources { memory : parse_memory ( & self . limits . memory . to_string ( ) ) ? , cpu : parse_cpu ( & self . limits . cpu . to_string ( ) ) ? , } ; Ok ( ResourceRequirements { requests , limits } ) }
Convert shorthand strings to raw number of cores and Bytes of memory
Convert shorthand strings to raw number of cores and Bytes of memory
&self
&self