next.go 766 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package password
  2. type NextPassword struct {
  3. Id string
  4. Label string
  5. Username string
  6. Password string
  7. Url string
  8. Notes string
  9. CustomFields string
  10. Status int
  11. StatusCode string
  12. Hash string
  13. Folder string
  14. Revision string
  15. Share *string
  16. Shared bool
  17. CseType string
  18. CseKey string
  19. SseType string
  20. Client string
  21. Hidden bool
  22. Trashed bool
  23. Favorite bool
  24. Editable bool
  25. Edited int
  26. Created int
  27. Updated int
  28. }
  29. func (n NextPassword) ToBarePassword() BarePassword {
  30. converted := BarePassword{
  31. Label: n.Label,
  32. Username: n.Username,
  33. Password: n.Password,
  34. Url: n.Url,
  35. Notes: n.Notes,
  36. }
  37. return converted
  38. }