// A string representation af the MatchRule (D-Bus variant map).
A string representation af the MatchRule (D-Bus variant map).
// A string representation af the MatchRule ( D - Bus variant map ) .
func (p *MatchRule) String() string {
	params := make([]string, 0, 6)
	if p.Type != TypeInvalid {
		params = append(params, fmt.Sprintf("type='%s'", p.Type))
	}
	if p.Sender != "" {
		params = append(params, fmt.Sprintf("sender='%s'", p.Sender))
	}
	if p.Path != "" {
		params = append(params, fmt.Sprintf("path='%s'", p.Path))
	}
	if p.Interface != "" {
		params = append(params, fmt.Sprintf("interface='%s'", p.Interface))
	}
	if p.Member != "" {
		params = append(params, fmt.Sprintf("member='%s'", p.Member))
	}
	if p.Arg0 != "" {
		params = append(params, fmt.Sprintf("arg0='%s'", p.Arg0))
	}
	return strings.Join(params, ",")
}
func ( p * MatchRule ) String ( ) string { params := make ( [ ] string , 0 , 6 ) if p . Type != TypeInvalid { params = append ( params , fmt . Sprintf ( " " , p . Type ) ) } if p . Sender != " " { params = append ( params , fmt . Sprintf ( " " , p . Sender ) ) } if p . Path != " " { params = append ( params , fmt . Sprintf ( " " , p . Path ) ) } if p . Interface != " " { params = append ( params , fmt . Sprintf ( " " , p . Interface ) ) } if p . Member != " " { params = append ( params , fmt . Sprintf ( " " , p . Member ) ) } if p . Arg0 != " " { params = append ( params , fmt . Sprintf ( " " , p . Arg0 ) ) } return strings . Join ( params , " " ) }
A string representation af the MatchRule (D-Bus variant map).
A string representation af the MatchRule ( D - Bus variant map ) .