Resource

io.funkode.resource.model.Resource$
See theResource companion trait
object Resource

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Resource.type

Members list

Type members

Classlikes

trait Addressable[R]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type
case class Of[R](urn: Urn, body: IO[ResourceError, R], etag: Option[Etag], links: ResourceLinks)

Attributes

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

Value members

Concrete methods

def empty(urn: Urn, resourceEtag: Option[Etag], resourceLinks: ResourceLinks): Resource
def fromAddressableClass[R](typedBody: R, etag: Option[Etag], links: ResourceLinks)(using evidence$1: Addressable[R]): Of[R]
def fromCaseClass[R](urn: Urn, typedBody: R, etag: Option[Etag], links: ResourceLinks): Of[R]
def fromJsonStream(resourceUrn: Urn, bodyStream: Stream[Throwable, Byte], resourceEtag: Option[Etag], resourceLinks: ResourceLinks): Resource
def fromJsonString(urn: Urn, bodyString: String, etag: Option[Etag], links: ResourceLinks): Resource

Givens

Givens

Extensions

Extensions

extension (resource: Resource)(inline resource: Resource)
inline def of[R]: Of[R]
extension [R](typedResource: Of[R])(inline typedResource: Of[R])(using evidence$2: Addressable[R])
inline def asJsonResource: Resource