src/proto/chainscript_pb.js
function Segment(properties) {
                if (properties)
                    for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                        if (properties[keys[i]] != null)
                            this[keys[i]] = properties[keys[i]];
            }
function Segment(properties) {
                if (properties)
                    for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                        if (properties[keys[i]] != null)
                            this[keys[i]] = properties[keys[i]];
            }
function Segment ( properties ) { if ( properties ) for ( var keys = Object . keys ( properties ) , i = 0 ; i < keys . length ; ++ i ) if ( properties [ keys [ i ] ] != null ) this [ keys [ i ] ] = properties [ keys [ i ] ] ; }
Properties of a Segment.
@memberof stratumn.chainscript
@interface ISegment
@property {stratumn.chainscript.ILink|null} [link] Segment link
@property {stratumn.chainscript.ISegmentMeta|null} [meta] Segment meta
 
Constructs a new Segment.
@memberof stratumn.chainscript
@classdesc Represents a Segment.
@implements ISegment
@constructor
@param {stratumn.chainscript.ISegment=} [properties] Properties to set
Properties of a Segment .