butterbidi/script/types/remote_reference

Types

pub type RemoteReference {
  Shared(SharedReference)
}

Constructors

pub type SharedReference {
  SharedReference(
    shared_id: uuid.Uuid,
    handle: option.Option(uuid.Uuid),
  )
}

Constructors

Values

pub fn remote_reference_from_id(
  shared_id: uuid.Uuid,
) -> RemoteReference
pub fn remote_reference_to_json(
  remote_reference: RemoteReference,
) -> json.Json
pub fn shared_reference_from_id(
  shared_id: uuid.Uuid,
) -> SharedReference

Creates a new shared reference from a shared id

pub fn shared_reference_to_json(
  shared_reference: SharedReference,
) -> json.Json
pub fn shared_reference_with_handle(
  shared_reference: SharedReference,
  handle: uuid.Uuid,
) -> SharedReference
Search Document