fn match_on_username(&self, username: &str) -> bool {
        let users: Vec<&str> = self.username.split(":").collect();
        if users.len() != 2 {
            return false
        }

        if users[0] != username {
            return false
        }

        true
    }
// According to #rfc5245, the username must be considered valid "if it
// consists of two values separated by a colon, where the first value is
// equal to the username fragment generated by the agent"
According to #rfc5245, the username must be considered valid "if it
consists of two values separated by a colon, where the first value is
equal to the username fragment generated by the agent"
According to #rfc5245 the username must be considered valid " if it consists of two values separated by a colon where the first value is equal to the username fragment generated by the agent "
fn match_on_username(&self, username: &str) -> bool {
        let users: Vec<&str> = self.username.split(":").collect();
        if users.len() != 2 {
            return false
        }
        if users[0] != username {
            return false
        }
        true
    }
fn match_on_username ( & self , username : & str ) -> bool { let users : Vec < & str > = self . username . split ( " " ) . collect ( ) ; if users . len ( ) != 2 { return false } if users [ 0 ] != username { return false } true }
According to #rfc5245, the username must be considered valid "if it
consists of two values separated by a colon, where the first value is
equal to the username fragment generated by the agent"
According to #rfc5245 the username must be considered valid " if it consists of two values separated by a colon where the first value is equal to the username fragment generated by the agent "
&self
username
&str
&self
username
&str