package WebService::Mattermost::V4::API::Object::Role::RequestID; # ABSTRACT: Adds a "request_id" field to an object. use Moo::Role; use Types::Standard qw(Maybe Str); ################################################################################ has request_id => (is => 'ro', isa => Maybe[Str], lazy => 1, builder => 1); ################################################################################ sub _build_request_id { my $self = shift; return $self->raw_data->{request_id}; } ################################################################################ 1; __END__ =pod =encoding UTF-8 =head1 NAME WebService::Mattermost::V4::API::Object::Role::RequestID - Adds a "request_id" field to an object. =head1 VERSION version 0.31 =head1 DESCRIPTION Attach a RequestID to a v4::Object object. =head2 ATTRIBUTES =over 4 =item C UUID. =back =head1 AUTHOR Mike Jones =head1 COPYRIGHT AND LICENSE This software is Copyright (c) 2023 by Mike Jones. This is free software, licensed under: The MIT (X11) License =cut