IsDefault returns true if this backup options struct has default value.
()
| 367 | |
| 368 | // IsDefault returns true if this backup options struct has default value. |
| 369 | func (o BackupOptions) IsDefault() bool { |
| 370 | options := BackupOptions{} |
| 371 | return o.CaptureRevisionHistory == options.CaptureRevisionHistory && |
| 372 | (o.Detached == nil || o.Detached == DBoolFalse) && |
| 373 | cmp.Equal(o.EncryptionKMSURI, options.EncryptionKMSURI) && |
| 374 | o.EncryptionPassphrase == options.EncryptionPassphrase && |
| 375 | cmp.Equal(o.IncrementalStorage, options.IncrementalStorage) && |
| 376 | o.ExecutionLocality == options.ExecutionLocality && |
| 377 | o.IncludeAllSecondaryTenants == options.IncludeAllSecondaryTenants && |
| 378 | o.UpdatesClusterMonitoringMetrics == options.UpdatesClusterMonitoringMetrics |
| 379 | } |
| 380 | |
| 381 | // Format implements the NodeFormatter interface. |
| 382 | func (o *RestoreOptions) Format(ctx *FmtCtx) { |