FreeBSD Manual Pages
Protocol::XMLRPC::ValuUsertContributed Perl Protocol::XMLRPC::Value::Struct(3) NAME Protocol::XMLRPC::Value::Struct - XML-RPC struct SYNOPSIS my $struct = Protocol::XMLRPC::Value::Struct->new(foo => 'bar'); my $struct = Protocol::XMLRPC::Value::Struct->new({foo => 'bar'}); my $struct = Protocol::XMLRPC::Value::Struct->new( foo => Protocol::XMLRPC::Value::String->new('bar')); DESCRIPTION XML-RPC struct METHODS "new" Creates new Protocol::XMLRPC::Value::Struct instance. Elements can be provided as a hash or as a hash reference. "type" Returns 'struct'. "add_member" $struct->add_member(foo => 'bar'); $struct->add_member({foo => 'bar'}); $struct->add_member(foo => Protocol::XMLRPC::Value::String->new('bar')); Adds value to the struct. Can be Perl5 scalar or any Protocol::XMLRCP::Value::* instance, including another struct. "members" my $struct = Protocol::XMLRPC::Value::Struct->new(foo => 'bar'); my $members = $struct->members; Returns hash reference where values are objects. "value" my $struct = Protocol::XMLRPC::Value::Struct->new(foo => 'bar'); my $structref = $struct->value; # $structref is now {foo => 'bar'} Returns serialized Perl5 hash reference. "to_string" my $struct = Protocol::XMLRPC::Value::Struct->new(foo => 'bar'); my $string = $struct->to_string; # <struct> # <member> # <name>foo</name> # <value><string>bar</string></value> # </member> # </struct>' XML-RPC struct string representation. perl v5.32.1 2011-05-05Protocol::XMLRPC::Value::Struct(3)
NAME | SYNOPSIS | DESCRIPTION | METHODS
Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Protocol::XMLRPC::Value::Struct&sektion=3&manpath=FreeBSD+13.1-RELEASE+and+Ports>