1
0
Fork 0
forked from alemi/upub

fix: temp rename relationship field to avoid clash

This commit is contained in:
əlemi 2024-03-21 01:10:33 +01:00
parent 59e8b298f5
commit 32dbd9e9ce
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -3,13 +3,15 @@ use crate::activitystream::Node;
pub trait Relationship : super::Object {
fn subject(&self) -> Node<impl super::Object> { Node::Empty::<serde_json::Value> }
fn relationship(&self) -> Option<&str> { None } // TODO what does this mean???
fn object(&self) -> Node<impl super::Object> { Node::Empty::<serde_json::Value> }
// TODO was just object but clashes with Activity
fn relationship_object(&self) -> Node<impl super::Object> { Node::Empty::<serde_json::Value> }
}
pub trait RelationshipMut : super::ObjectMut {
fn set_subject(self, val: Node<impl super::Object>) -> Self;
fn set_relationship(self, val: Option<&str>) -> Self; // TODO what does this mean???
fn set_object(self, val: Node<impl super::Object>) -> Self;
// TODO was just object but clashes with Activity
fn set_relationship_object(self, val: Node<impl super::Object>) -> Self;
}
impl Relationship for serde_json::Value {