SimpleDateTimeParams converts given date time parameters to their corresponding simple parameters.
(params DateTimeParams)
| 110 | |
| 111 | // SimpleDateTimeParams converts given date time parameters to their corresponding simple parameters. |
| 112 | func SimpleDateTimeParams(params DateTimeParams) SimpleParams { |
| 113 | return SimpleParams{ |
| 114 | caseExact: false, |
| 115 | description: params.Description, |
| 116 | multiValued: params.MultiValued, |
| 117 | mutability: params.Mutability.m, |
| 118 | name: params.Name, |
| 119 | required: params.Required, |
| 120 | returned: params.Returned.r, |
| 121 | typ: attributeDataTypeDateTime, |
| 122 | uniqueness: attributeUniquenessNone, |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | // SimpleNumberParams converts given number parameters to their corresponding simple parameters. |
| 127 | func SimpleNumberParams(params NumberParams) SimpleParams { |
no outgoing calls
searching dependent graphs…