pub fn find_first_acs(&self) -> Result<ServiceBinding, &'static str> {
        if !self.services.is_empty() {
            for service in &self.services {
                if let SamlBindingType::AssertionConsumerService = service.servicetype {
                    return Ok(service.to_owned());
                };
            }
        }
        Err("Couldn't find ACS")
    }
/// return the first AssertionConsumerService we find
return the first AssertionConsumerService we find
return the first AssertionConsumerService we find
pub fn find_first_acs(&self) -> Result<ServiceBinding, &'static str> {
        if !self.services.is_empty() {
            for service in &self.services {
                if let SamlBindingType::AssertionConsumerService = service.servicetype {
                    return Ok(service.to_owned());
                };
            }
        }
        Err("Couldn't find ACS")
    }
pub fn find_first_acs ( & self ) -> Result < ServiceBinding , & ' static str > { if ! self . services . is_empty ( ) { for service in & self . services { if let SamlBindingType :: AssertionConsumerService = service . servicetype { return Ok ( service . to_owned ( ) ) ; } ; } } Err ( " " ) }
return the first AssertionConsumerService we find
return the first AssertionConsumerService we find
&self
&self