// Code generated by go-swagger; DO NOT EDIT. package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // StatusSource StatusSource represents the source text of a // status as submitted to the API when it was created. // // swagger:model StatusSource type StatusSource struct { // ID of the status. // Example: 01FBVD42CQ3ZEEVMW180SBX03B ID string `json:"id,omitempty"` // Plain-text version of spoiler text. SpoilerText string `json:"spoiler_text,omitempty"` // Plain-text source of a status. Text string `json:"text,omitempty"` } // Validate validates this status source func (m *StatusSource) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this status source based on context it is used func (m *StatusSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *StatusSource) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *StatusSource) UnmarshalBinary(b []byte) error { var res StatusSource if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil }