The present invention addresses the problem of providing a resin with which a heat resistant nonwoven fabric having a fine fiber diameter can be produced by an electrospinning method. The purpose of the present invention is to provide a resin having a structure represented by at least one selected from the group consisting of general formulae (1)-(3), and containing, at the terminal of the main chain, at least one selected from among an alkyl group having 10 or more carbon atoms and a fluoroalkyl group having 4 or more carbon atoms. In general formula (1), each X independently represents a single bond or -NR3-, R1 and R2 each independently represent a C4-30 divalent organic group, and R3 represents a hydrogen atom or a C1-10 monovalent organic group. In general formula (2), R4 represents aC4-30 divalent organic group, and R5 represents a C4-30 tetravalent organic group. In general formula (3), R6 represents a C4-30 divalent organic group, R7 represents a C4-30 trivalent organic group,l, m, and n are each an integer of 0 or more, and 1+m+n is 10 or more. In addition, the structures represented by general formulae (1)-(3) do not necessarily appear in succession.