pub struct IdentityTarget {
pub model: String,
pub dialect: DialectId,
pub origin: Option<String>,
}Expand description
Target semantics are persisted with an identity record. A record from a different model or target dialect cannot be restored into a new flow.
Fields§
§model: String§dialect: DialectId§origin: Option<String>Host-owned upstream/principal origin for signature binding. It is intentionally separate from the wire dialect.
Implementations§
Source§impl IdentityTarget
impl IdentityTarget
pub fn new( model: impl Into<String>, dialect: DialectId, ) -> Result<Self, IdentityError>
pub fn with_origin( self, origin: impl Into<String>, ) -> Result<Self, IdentityError>
Trait Implementations§
Source§impl Clone for IdentityTarget
impl Clone for IdentityTarget
Source§impl Debug for IdentityTarget
impl Debug for IdentityTarget
Source§impl<'de> Deserialize<'de> for IdentityTarget
impl<'de> Deserialize<'de> for IdentityTarget
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 IdentityTarget
Source§impl PartialEq for IdentityTarget
impl PartialEq for IdentityTarget
Source§impl Serialize for IdentityTarget
impl Serialize for IdentityTarget
impl StructuralPartialEq for IdentityTarget
Auto Trait Implementations§
impl Freeze for IdentityTarget
impl RefUnwindSafe for IdentityTarget
impl Send for IdentityTarget
impl Sync for IdentityTarget
impl Unpin for IdentityTarget
impl UnsafeUnpin for IdentityTarget
impl UnwindSafe for IdentityTarget
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