All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.wojnowski.googlecloud4s.firestore.DocumentMask.scala Maven / Gradle / Ivy

There is a newer version: 0.10.0
Show newest version
package me.wojnowski.googlecloud4s.firestore

import cats.data.NonEmptyList
import io.circe.Encoder

case class DocumentMask(fieldPaths: NonEmptyList[FieldPath])

object DocumentMask {
  def apply(head: FieldPath, tail: FieldPath*): DocumentMask = DocumentMask(NonEmptyList(head, tail.toList))

  implicit val encoder: Encoder[DocumentMask] = Encoder.forProduct1[DocumentMask, NonEmptyList[FieldPath]]("fieldPaths")(_.fieldPaths)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy