Debian Codegraph @

sarif/artifact_content.go

raw symbols SCIP
1 package sarif
2
3 // ArtifactContent ...
4 type ArtifactContent struct { // https://docs.oasis-open.org/sarif/sarif/v2.1.0/csprd01/sarif-v2.1.0-csprd01.html#_Toc10540860
5 PropertyBag
6 Text *string `json:"text,omitempty"`
7 Binary *string `json:"binary,omitempty"`
8 Rendered *MultiformatMessageString `json:"rendered,omitempty"`
9 }
10
11 // NewArtifactContent ...
12 func NewArtifactContent() *ArtifactContent {
13 return &ArtifactContent{}
14 }
15
16 // WithText ...
17 func (a *ArtifactContent) WithText(text string) *ArtifactContent {
18 a.Text = &text
19 return a
20 }
21
22 // WithBinary ...
23 func (a *ArtifactContent) WithBinary(binary string) *ArtifactContent {
24 a.Binary = &binary
25 return a
26 }
27
28 // WithRendered ...
29 func (a *ArtifactContent) WithRendered(mms *MultiformatMessageString) *ArtifactContent {
30 a.Rendered = mms
31 return a
32 }