#[derive(
Debug,
Clone,
conjure_object::serde::Serialize,
conjure_object::serde::Deserialize,
PartialEq,
Eq,
PartialOrd,
Ord,
Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct CanvasEndpoint {
#[serde(rename = "objectId")]
object_id: conjure_object::Uuid,
#[builder(into)]
#[serde(rename = "anchorId")]
anchor_id: String,
}
impl CanvasEndpoint {
#[inline]
pub fn new(object_id: conjure_object::Uuid, anchor_id: impl Into<String>) -> Self {
Self::builder().object_id(object_id).anchor_id(anchor_id).build()
}
#[inline]
pub fn object_id(&self) -> conjure_object::Uuid {
self.object_id
}
#[inline]
pub fn anchor_id(&self) -> &str {
&*self.anchor_id
}
}