Function radicle_cob::object::collaboration::update
source ยท pub fn update<T, S, G>(
storage: &S,
signer: &G,
resource: Option<Oid>,
related: Vec<Oid>,
identifier: &PublicKey,
args: Update,
) -> Result<Updated<T>, Update>
Expand description
Update an existing CollaborativeObject
.
The storage
is the backing storage for storing
crate::Entry
s at content-addressable locations. Please see
Store
for further information.
The signer
is expected to be a cryptographic signing key. This
ensures that the objects origin is cryptographically verifiable.
The resource
is the resource this change lives under, eg. a project.
The parents
are other the parents of this object, for example a
code commit.
The identifier
is a unqiue id that is passed through to the
crate::object::Storage
.
The args
are the metadata for this CollaborativeObject
udpate. See Update
for further information.