Eric Waters > Thrift-Parser-0.06 > Thrift::Parser::Type::Struct

Download:
Thrift-Parser-0.06.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Thrift::Parser::Type::Struct - Struct type

DESCRIPTION ^

METHODS ^

This class inherits from Thrift::Parser::Type; see docs there for inherited methods.

value

Returns the Thrift::Parser::FieldSet object which represents the data in this type.

The following methods are available on this class that are passthrough methods to the value object:

  my $field = $object->named('id');
  is equivalent to:
  my $field = $object->value->named('id');
named
id
ids
field_values
keyed_field_values

compose

  my $object = $class->compose({ ... });

Call with a hashref of key/value pairs to create a new object.

COPYRIGHT ^

Copyright (c) 2009 Eric Waters and XMission LLC (http://www.xmission.com/). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

AUTHOR ^

Eric Waters <ewaters@gmail.com>

syntax highlighting: