GoogleDriveJsonProtocol

com.github.cloudfiles.gdrive.GoogleDriveJsonProtocol
object GoogleDriveJsonProtocol extends DefaultJsonProtocol

A module defining data classes that correspond to the GoogleDrive REST API as described at https://developers.google.com/drive/api/v3/reference/files.

The GoogleDrive REST API uses JSON as data exchange format. The classes defined here are used to read and write JSON to and from Scala objects.

In addition, the module defines converters for these data classes to enable a proper JSON serialization. They are available as implicits, which must be available in the current scope to make the conversion to and from JSON possible.

Attributes

Graph
Supertypes
trait DefaultJsonProtocol
trait AdditionalFormats
trait ProductFormats
trait ProductFormatsInstances
trait CollectionFormats
trait StandardFormats
trait BasicFormats
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Classlikes

case class File(id: String, name: String, mimeType: String, parents: List[String], createdTime: Instant, modifiedTime: Instant, description: Option[String], size: Option[String], properties: Option[Map[String, String]], appProperties: Option[Map[String, String]], trashed: Boolean, trashedTime: Option[Instant])

A data class corresponding to the GoogleDrive ''File'' resource.

A data class corresponding to the GoogleDrive ''File'' resource.

This resource is used to represent files and folders stored on a GoogleDrive. The ''FileSystem'' implementation for GoogleDrive mainly interacts with this resource.

Refer to https://developers.google.com/drive/api/v3/reference/files.

Value parameters

appProperties

optional application-specific properties

createdTime

the creation time

description

the optional description for this file

id

the ID of the file

mimeType

the mime type

modifiedTime

the time of the last modification

name

the name of the file (or folder)

parents

a list with the parents of this file

properties

optional properties assigned to this file

size

the size of the file

trashed

flag whether the file is in trash

trashedTime

optional time when the file was moved to trash

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class FileReference(id: String)

A data class representing a reference to a file.

A data class representing a reference to a file.

This class is used for resolve operation, where only file IDs are relevant. Other information is ignored.

Value parameters

id

the ID of the referenced file

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class FolderResponse(files: List[File], nextPageToken: Option[String])

A data class describing the content of a folder with all its files.

A data class describing the content of a folder with all its files.

In Google Drive, there is the single type File representing both files and folders; so a single list with elements of this type is sufficient to hold all the elements the folder contains.

Value parameters

files

the elements contained in the folder

nextPageToken

an optional token to query the next result page

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object InstantFormat extends JsonFormat[Instant]

A format implementation to deal with date-time values. GoogleDrive uses the default ISO format that can be parsed by the ''Instant'' class. Therefore, this implementation is straight-forward.

A format implementation to deal with date-time values. GoogleDrive uses the default ISO format that can be parsed by the ''Instant'' class. Therefore, this implementation is straight-forward.

Attributes

Supertypes
trait JsonFormat[Instant]
trait JsonWriter[Instant]
trait JsonReader[Instant]
class Object
trait Matchable
class Any
Show all
Self type
case class ResolveResponse(files: List[FileReference], nextPageToken: Option[String])

A data class describing the response of a query to resolve files.

A data class describing the response of a query to resolve files.

The query requests only the ID field of files; therefore, only FileReference objects are constructed. Paging needs to be supported as well.

Value parameters

files

the elements returned by the query

nextPageToken

an optional token to query the next result page

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class WritableFile(name: Option[String], mimeType: Option[String], parents: Option[List[String]], createdTime: Option[Instant], modifiedTime: Option[Instant], description: Option[String], properties: Option[Map[String, String]], appProperties: Option[Map[String, String]], trashed: Option[Boolean], trashedTime: Option[Instant])

A data class representing a ''File'' resource when it is created or updated.

A data class representing a ''File'' resource when it is created or updated.

This class has a subset of the properties of File, and all are optional. These are the writable properties that can be set in create or update operations. The class is used to generate the JSON payload for these operations.

Value parameters

appProperties

the optional new application-specific properties

createdTime

the optional new creation time

description

the optional new description

mimeType

the optional new mime type

modifiedTime

the optional new modified time

name

the optional new name of the file

parents

the optional parents

properties

the optional new properties

trashed

the optional new trashed flag

trashedTime

the optional new trashed time

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited classlikes

object BigDecimalJsonFormat extends JsonFormat[BigDecimal]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[BigDecimal]
trait JsonWriter[BigDecimal]
trait JsonReader[BigDecimal]
class Object
trait Matchable
class Any
Show all
object BigIntJsonFormat extends JsonFormat[BigInt]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[BigInt]
trait JsonWriter[BigInt]
trait JsonReader[BigInt]
class Object
trait Matchable
class Any
Show all
object BooleanJsonFormat extends JsonFormat[Boolean]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Boolean]
trait JsonWriter[Boolean]
trait JsonReader[Boolean]
class Object
trait Matchable
class Any
Show all
object ByteJsonFormat extends JsonFormat[Byte]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Byte]
trait JsonWriter[Byte]
trait JsonReader[Byte]
class Object
trait Matchable
class Any
Show all
object CharJsonFormat extends JsonFormat[Char]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Char]
trait JsonWriter[Char]
trait JsonReader[Char]
class Object
trait Matchable
class Any
Show all
object DoubleJsonFormat extends JsonFormat[Double]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Double]
trait JsonWriter[Double]
trait JsonReader[Double]
class Object
trait Matchable
class Any
Show all
object FloatJsonFormat extends JsonFormat[Float]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Float]
trait JsonWriter[Float]
trait JsonReader[Float]
class Object
trait Matchable
class Any
Show all
object IntJsonFormat extends JsonFormat[Int]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Int]
trait JsonWriter[Int]
trait JsonReader[Int]
class Object
trait Matchable
class Any
Show all
object JsValueFormat extends JsonFormat[JsValue]

Attributes

Inherited from:
AdditionalFormats
Supertypes
trait JsonFormat[JsValue]
trait JsonWriter[JsValue]
trait JsonReader[JsValue]
class Object
trait Matchable
class Any
Show all
object LongJsonFormat extends JsonFormat[Long]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Long]
trait JsonWriter[Long]
trait JsonReader[Long]
class Object
trait Matchable
class Any
Show all
class OptionFormat[T] extends JsonFormat[Option[T]]

Attributes

Inherited from:
StandardFormats
Supertypes
trait JsonFormat[Option[T]]
trait JsonWriter[Option[T]]
trait JsonReader[Option[T]]
class Object
trait Matchable
class Any
Show all
object RootJsArrayFormat extends RootJsonFormat[JsArray]

Attributes

Inherited from:
AdditionalFormats
Supertypes
trait RootJsonFormat[JsArray]
trait RootJsonWriter[JsArray]
trait RootJsonReader[JsArray]
trait JsonFormat[JsArray]
trait JsonWriter[JsArray]
trait JsonReader[JsArray]
class Object
trait Matchable
class Any
Show all
object RootJsObjectFormat extends RootJsonFormat[JsObject]

Attributes

Inherited from:
AdditionalFormats
Supertypes
trait RootJsonFormat[JsObject]
trait RootJsonWriter[JsObject]
trait RootJsonReader[JsObject]
trait JsonFormat[JsObject]
trait JsonWriter[JsObject]
trait JsonReader[JsObject]
class Object
trait Matchable
class Any
Show all
object ShortJsonFormat extends JsonFormat[Short]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Short]
trait JsonWriter[Short]
trait JsonReader[Short]
class Object
trait Matchable
class Any
Show all
object StringJsonFormat extends JsonFormat[String]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[String]
trait JsonWriter[String]
trait JsonReader[String]
class Object
trait Matchable
class Any
Show all
object SymbolJsonFormat extends JsonFormat[Symbol]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Symbol]
trait JsonWriter[Symbol]
trait JsonReader[Symbol]
class Object
trait Matchable
class Any
Show all
object UnitJsonFormat extends JsonFormat[Unit]

Attributes

Inherited from:
BasicFormats
Supertypes
trait JsonFormat[Unit]
trait JsonWriter[Unit]
trait JsonReader[Unit]
class Object
trait Matchable
class Any
Show all

Value members

Inherited methods

def jsonFormat[T](reader: JsonReader[T], writer: JsonWriter[T]): JsonFormat[T]

Constructs a JsonFormat from its two parts, JsonReader and JsonWriter.

Constructs a JsonFormat from its two parts, JsonReader and JsonWriter.

Attributes

Inherited from:
AdditionalFormats
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, P14 : JsonFormat, P15 : JsonFormat, P16 : JsonFormat, P17 : JsonFormat, P18 : JsonFormat, P19 : JsonFormat, P20 : JsonFormat, P21 : JsonFormat, P22 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, P22) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String, fieldName5: String, fieldName6: String, fieldName7: String, fieldName8: String, fieldName9: String, fieldName10: String, fieldName11: String, fieldName12: String, fieldName13: String, fieldName14: String, fieldName15: String, fieldName16: String, fieldName17: String, fieldName18: String, fieldName19: String, fieldName20: String, fieldName21: String, fieldName22: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, P14 : JsonFormat, P15 : JsonFormat, P16 : JsonFormat, P17 : JsonFormat, P18 : JsonFormat, P19 : JsonFormat, P20 : JsonFormat, P21 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String, fieldName5: String, fieldName6: String, fieldName7: String, fieldName8: String, fieldName9: String, fieldName10: String, fieldName11: String, fieldName12: String, fieldName13: String, fieldName14: String, fieldName15: String, fieldName16: String, fieldName17: String, fieldName18: String, fieldName19: String, fieldName20: String, fieldName21: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, P14 : JsonFormat, P15 : JsonFormat, P16 : JsonFormat, P17 : JsonFormat, P18 : JsonFormat, P19 : JsonFormat, P20 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String, fieldName5: String, fieldName6: String, fieldName7: String, fieldName8: String, fieldName9: String, fieldName10: String, fieldName11: String, fieldName12: String, fieldName13: String, fieldName14: String, fieldName15: String, fieldName16: String, fieldName17: String, fieldName18: String, fieldName19: String, fieldName20: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, P14 : JsonFormat, P15 : JsonFormat, P16 : JsonFormat, P17 : JsonFormat, P18 : JsonFormat, P19 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String, fieldName5: String, fieldName6: String, fieldName7: String, fieldName8: String, fieldName9: String, fieldName10: String, fieldName11: String, fieldName12: String, fieldName13: String, fieldName14: String, fieldName15: String, fieldName16: String, fieldName17: String, fieldName18: String, fieldName19: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, P14 : JsonFormat, P15 : JsonFormat, P16 : JsonFormat, P17 : JsonFormat, P18 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String, fieldName5: String, fieldName6: String, fieldName7: String, fieldName8: String, fieldName9: String, fieldName10: String, fieldName11: String, fieldName12: String, fieldName13: String, fieldName14: String, fieldName15: String, fieldName16: String, fieldName17: String, fieldName18: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, P14 : JsonFormat, P15 : JsonFormat, P16 : JsonFormat, P17 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String, fieldName5: String, fieldName6: String, fieldName7: String, fieldName8: String, fieldName9: String, fieldName10: String, fieldName11: String, fieldName12: String, fieldName13: String, fieldName14: String, fieldName15: String, fieldName16: String, fieldName17: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, P14 : JsonFormat, P15 : JsonFormat, P16 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String, fieldName5: String, fieldName6: String, fieldName7: String, fieldName8: String, fieldName9: String, fieldName10: String, fieldName11: String, fieldName12: String, fieldName13: String, fieldName14: String, fieldName15: String, fieldName16: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, P14 : JsonFormat, P15 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String, fieldName5: String, fieldName6: String, fieldName7: String, fieldName8: String, fieldName9: String, fieldName10: String, fieldName11: String, fieldName12: String, fieldName13: String, fieldName14: String, fieldName15: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, P14 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String, fieldName5: String, fieldName6: String, fieldName7: String, fieldName8: String, fieldName9: String, fieldName10: String, fieldName11: String, fieldName12: String, fieldName13: String, fieldName14: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String, fieldName5: String, fieldName6: String, fieldName7: String, fieldName8: String, fieldName9: String, fieldName10: String, fieldName11: String, fieldName12: String, fieldName13: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String, fieldName5: String, fieldName6: String, fieldName7: String, fieldName8: String, fieldName9: String, fieldName10: String, fieldName11: String, fieldName12: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String, fieldName5: String, fieldName6: String, fieldName7: String, fieldName8: String, fieldName9: String, fieldName10: String, fieldName11: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String, fieldName5: String, fieldName6: String, fieldName7: String, fieldName8: String, fieldName9: String, fieldName10: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String, fieldName5: String, fieldName6: String, fieldName7: String, fieldName8: String, fieldName9: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String, fieldName5: String, fieldName6: String, fieldName7: String, fieldName8: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String, fieldName5: String, fieldName6: String, fieldName7: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4, P5, P6) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String, fieldName5: String, fieldName6: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4, P5) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String, fieldName5: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, T <: Product](construct: (P1, P2, P3, P4) => T, fieldName1: String, fieldName2: String, fieldName3: String, fieldName4: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, T <: Product](construct: (P1, P2, P3) => T, fieldName1: String, fieldName2: String, fieldName3: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, P2 : JsonFormat, T <: Product](construct: (P1, P2) => T, fieldName1: String, fieldName2: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat[P1 : JsonFormat, T <: Product](construct: P1 => T, fieldName1: String): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat0[T](construct: () => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormats
def jsonFormat1[P1 : JsonFormat, T <: Product : ClassTag](construct: P1 => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat10[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat11[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat12[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat13[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat14[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, P14 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat15[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, P14 : JsonFormat, P15 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat16[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, P14 : JsonFormat, P15 : JsonFormat, P16 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat17[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, P14 : JsonFormat, P15 : JsonFormat, P16 : JsonFormat, P17 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat18[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, P14 : JsonFormat, P15 : JsonFormat, P16 : JsonFormat, P17 : JsonFormat, P18 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat19[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, P14 : JsonFormat, P15 : JsonFormat, P16 : JsonFormat, P17 : JsonFormat, P18 : JsonFormat, P19 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat2[P1 : JsonFormat, P2 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat20[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, P14 : JsonFormat, P15 : JsonFormat, P16 : JsonFormat, P17 : JsonFormat, P18 : JsonFormat, P19 : JsonFormat, P20 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat21[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, P14 : JsonFormat, P15 : JsonFormat, P16 : JsonFormat, P17 : JsonFormat, P18 : JsonFormat, P19 : JsonFormat, P20 : JsonFormat, P21 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat22[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, P10 : JsonFormat, P11 : JsonFormat, P12 : JsonFormat, P13 : JsonFormat, P14 : JsonFormat, P15 : JsonFormat, P16 : JsonFormat, P17 : JsonFormat, P18 : JsonFormat, P19 : JsonFormat, P20 : JsonFormat, P21 : JsonFormat, P22 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, P22) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat3[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat4[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat5[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4, P5) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat6[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4, P5, P6) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat7[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4, P5, P6, P7) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat8[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4, P5, P6, P7, P8) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def jsonFormat9[P1 : JsonFormat, P2 : JsonFormat, P3 : JsonFormat, P4 : JsonFormat, P5 : JsonFormat, P6 : JsonFormat, P7 : JsonFormat, P8 : JsonFormat, P9 : JsonFormat, T <: Product : ClassTag](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9) => T): RootJsonFormat[T]

Attributes

Inherited from:
ProductFormatsInstances
def lazyFormat[T](format: => JsonFormat[T]): JsonFormat[T]

Lazy wrapper around serialization. Useful when you want to serialize (mutually) recursive structures.

Lazy wrapper around serialization. Useful when you want to serialize (mutually) recursive structures.

Attributes

Inherited from:
AdditionalFormats
def lift[T <: AnyRef](reader: RootJsonReader[T]): RootJsonFormat[T]

Turns a RootJsonReader into a RootJsonFormat that throws an UnsupportedOperationException for writes.

Turns a RootJsonReader into a RootJsonFormat that throws an UnsupportedOperationException for writes.

Attributes

Inherited from:
AdditionalFormats
def lift[T <: AnyRef](reader: JsonReader[T]): JsonFormat[T]

Turns a JsonReader into a JsonFormat that throws an UnsupportedOperationException for writes.

Turns a JsonReader into a JsonFormat that throws an UnsupportedOperationException for writes.

Attributes

Inherited from:
AdditionalFormats
def lift[T](writer: RootJsonWriter[T]): RootJsonFormat[T]

Turns a RootJsonWriter into a RootJsonFormat that throws an UnsupportedOperationException for reads.

Turns a RootJsonWriter into a RootJsonFormat that throws an UnsupportedOperationException for reads.

Attributes

Inherited from:
AdditionalFormats
def lift[T](writer: JsonWriter[T]): JsonFormat[T]

Turns a JsonWriter into a JsonFormat that throws an UnsupportedOperationException for reads.

Turns a JsonWriter into a JsonFormat that throws an UnsupportedOperationException for reads.

Attributes

Inherited from:
AdditionalFormats
def rootFormat[T](format: JsonFormat[T]): RootJsonFormat[T]

Explicitly turns a JsonFormat into a RootJsonFormat.

Explicitly turns a JsonFormat into a RootJsonFormat.

Attributes

Inherited from:
AdditionalFormats
def rootJsonFormat[T](reader: RootJsonReader[T], writer: RootJsonWriter[T]): RootJsonFormat[T]

Constructs a RootJsonFormat from its two parts, RootJsonReader and RootJsonWriter.

Constructs a RootJsonFormat from its two parts, RootJsonReader and RootJsonWriter.

Attributes

Inherited from:
AdditionalFormats
def safeReader[A : JsonReader]: JsonReader[Either[Exception, A]]

Wraps an existing JsonReader with Exception protection.

Wraps an existing JsonReader with Exception protection.

Attributes

Inherited from:
AdditionalFormats
def viaSeq[I <: Iterable[T], T : JsonFormat](f: Seq[T] => I): RootJsonFormat[I]

A JsonFormat construction helper that creates a JsonFormat for an Iterable type I from a builder function List => I.

A JsonFormat construction helper that creates a JsonFormat for an Iterable type I from a builder function List => I.

Attributes

Inherited from:
CollectionFormats

Implicits

Implicits

implicit val fileFormat: RootJsonFormat[File]
implicit val fileReferenceFormat: RootJsonFormat[FileReference]
implicit val folderResponseFormat: RootJsonFormat[FolderResponse]
implicit val resolveResponseFormat: RootJsonFormat[ResolveResponse]
implicit val writableFileFormat: RootJsonFormat[WritableFile]

Inherited implicits

implicit def arrayFormat[T : ClassTag]: RootJsonFormat[Array[T]]

Supplies the JsonFormat for Arrays.

Supplies the JsonFormat for Arrays.

Attributes

Inherited from:
CollectionFormats
implicit def eitherFormat[A : JsonFormat, B : JsonFormat]: JsonFormat[Either[A, B]]

Attributes

Inherited from:
StandardFormats
implicit def immIndexedSeqFormat[T : JsonFormat]: RootJsonFormat[IndexedSeq[T]]

Attributes

Inherited from:
CollectionFormats
implicit def immIterableFormat[T : JsonFormat]: RootJsonFormat[Iterable[T]]

Attributes

Inherited from:
CollectionFormats
implicit def immLinearSeqFormat[T : JsonFormat]: RootJsonFormat[LinearSeq[T]]

Attributes

Inherited from:
CollectionFormats
implicit def immSeqFormat[T : JsonFormat]: RootJsonFormat[Seq[T]]

Attributes

Inherited from:
CollectionFormats
implicit def immSetFormat[T : JsonFormat]: RootJsonFormat[Set[T]]

Attributes

Inherited from:
CollectionFormats
implicit def indexedSeqFormat[T : JsonFormat]: RootJsonFormat[IndexedSeq[T]]

Attributes

Inherited from:
CollectionFormats
implicit def iterableFormat[T : JsonFormat]: RootJsonFormat[Iterable[T]]

Attributes

Inherited from:
CollectionFormats
implicit def linearSeqFormat[T : JsonFormat]: RootJsonFormat[LinearSeq[T]]

Attributes

Inherited from:
CollectionFormats
implicit def listFormat[T : JsonFormat]: RootJsonFormat[List[T]]

Supplies the JsonFormat for Lists.

Supplies the JsonFormat for Lists.

Attributes

Inherited from:
CollectionFormats
implicit def mapFormat[K : JsonFormat, V : JsonFormat]: RootJsonFormat[Map[K, V]]

Supplies the JsonFormat for Maps. The implicitly available JsonFormat for the key type K must always write JsStrings, otherwise a spray.json.SerializationException will be thrown.

Supplies the JsonFormat for Maps. The implicitly available JsonFormat for the key type K must always write JsStrings, otherwise a spray.json.SerializationException will be thrown.

Attributes

Inherited from:
CollectionFormats
implicit def optionFormat[T : JsonFormat]: JsonFormat[Option[T]]

Attributes

Inherited from:
StandardFormats
implicit def seqFormat[T : JsonFormat]: RootJsonFormat[Seq[T]]

Attributes

Inherited from:
CollectionFormats
implicit def setFormat[T : JsonFormat]: RootJsonFormat[Set[T]]

Attributes

Inherited from:
CollectionFormats
implicit def tuple1Format[A : JsonFormat]: JsonFormat[(A)]

Attributes

Inherited from:
StandardFormats
implicit def tuple2Format[A : JsonFormat, B : JsonFormat]: RootJsonFormat[(A, B)]

Attributes

Inherited from:
StandardFormats
implicit def tuple3Format[A : JsonFormat, B : JsonFormat, C : JsonFormat]: RootJsonFormat[(A, B, C)]

Attributes

Inherited from:
StandardFormats
implicit def tuple4Format[A : JsonFormat, B : JsonFormat, C : JsonFormat, D : JsonFormat]: RootJsonFormat[(A, B, C, D)]

Attributes

Inherited from:
StandardFormats
implicit def tuple5Format[A : JsonFormat, B : JsonFormat, C : JsonFormat, D : JsonFormat, E : JsonFormat]: RootJsonFormat[(A, B, C, D, E)]

Attributes

Inherited from:
StandardFormats
implicit def tuple6Format[A : JsonFormat, B : JsonFormat, C : JsonFormat, D : JsonFormat, E : JsonFormat, F : JsonFormat]: RootJsonFormat[(A, B, C, D, E, F)]

Attributes

Inherited from:
StandardFormats
implicit def tuple7Format[A : JsonFormat, B : JsonFormat, C : JsonFormat, D : JsonFormat, E : JsonFormat, F : JsonFormat, G : JsonFormat]: RootJsonFormat[(A, B, C, D, E, F, G)]

Attributes

Inherited from:
StandardFormats
implicit def vectorFormat[T : JsonFormat]: RootJsonFormat[Vector[T]]

Attributes

Inherited from:
CollectionFormats