pub struct SourceMessageRef {
pub contract_signature: String,
pub entry_id: String,
pub format: String,
pub source_signature: String,
pub version: Version,
}Expand description
Canonical, argument-free reference to a source-catalog message contract.
Fields§
§contract_signature: StringSignature of the source identity and placeholder schemas.
entry_id: StringStable message entry ID.
format: StringWire format discriminator.
source_signature: StringFull stable source identity signature.
version: VersionSource-reference wire version.
Implementations§
Source§impl SourceMessageRef
impl SourceMessageRef
Sourcepub fn to_canonical_json(&self) -> Result<String, SerializeError>
pub fn to_canonical_json(&self) -> Result<String, SerializeError>
Encodes the reference as deterministic RFC 8785 canonical JSON.
Trait Implementations§
Source§impl Clone for SourceMessageRef
impl Clone for SourceMessageRef
Source§impl Debug for SourceMessageRef
impl Debug for SourceMessageRef
Source§impl<'de> Deserialize<'de> for SourceMessageRef
impl<'de> Deserialize<'de> for SourceMessageRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SourceMessageRef
Source§impl PartialEq for SourceMessageRef
impl PartialEq for SourceMessageRef
Source§impl Serialize for SourceMessageRef
impl Serialize for SourceMessageRef
impl StructuralPartialEq for SourceMessageRef
Auto Trait Implementations§
impl Freeze for SourceMessageRef
impl RefUnwindSafe for SourceMessageRef
impl Send for SourceMessageRef
impl Sync for SourceMessageRef
impl Unpin for SourceMessageRef
impl UnsafeUnpin for SourceMessageRef
impl UnwindSafe for SourceMessageRef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more