-
Notifications
You must be signed in to change notification settings - Fork 1
/
export_layout_configuration_column.go
executable file
·63 lines (53 loc) · 1.46 KB
/
export_layout_configuration_column.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package processout
import (
"bytes"
"encoding/json"
"io"
"net/http"
"net/url"
"strings"
"time"
"gopkg.in/processout.v4/errors"
)
// ExportLayoutConfigurationColumn represents the ExportLayoutConfigurationColumn API object
type ExportLayoutConfigurationColumn struct {
// Name is the name of the column. Must match with supported ones for chosen export type.
Name *string `json:"name,omitempty"`
// Rename is the rename of the chosen column if needed.
Rename *string `json:"rename,omitempty"`
client *ProcessOut
}
// SetClient sets the client for the ExportLayoutConfigurationColumn object and its
// children
func (s *ExportLayoutConfigurationColumn) SetClient(c *ProcessOut) *ExportLayoutConfigurationColumn {
if s == nil {
return s
}
s.client = c
return s
}
// Prefil prefills the object with data provided in the parameter
func (s *ExportLayoutConfigurationColumn) Prefill(c *ExportLayoutConfigurationColumn) *ExportLayoutConfigurationColumn {
if c == nil {
return s
}
s.Name = c.Name
s.Rename = c.Rename
return s
}
// dummyExportLayoutConfigurationColumn is a dummy function that's only
// here because some files need specific packages and some don't.
// It's easier to include it for every file. In case you couldn't
// tell, everything is generated.
func dummyExportLayoutConfigurationColumn() {
type dummy struct {
a bytes.Buffer
b json.RawMessage
c http.File
d strings.Reader
e time.Time
f url.URL
g io.Reader
}
errors.New(nil, "", "")
}