The present invention relates to a compound inhibiting the activities of Bruton's tyrosine kinase (BTK) and/or Janus kinase 3 (JAK3), a pharmaceutical composition of the compound, pharmaceutical applications of same, a method for using the compound in inhibiting the activities of BTK and/or JAK3, and a method for using the compound in treatment and/or prevention of BTK- and/or JAK3-mediated diseases or disorders in mammals (especially human). The compound is as represented by structural formula (I).