#[non_exhaustive]pub struct FederatedAttributes {
pub stamp_required: bool,
pub peer_class: FederatedPeerClass,
pub peer_fingerprint: String,
pub pairing_id: String,
pub peer_name: String,
pub remote_claim: Option<RemoteClaim>,
}Expand description
Facts from the local pairing roster. Fixed for the scope’s epoch.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stamp_required: boolRequire a federated stamp instead of falling back to a legacy bind. This daemon instruction is removed from provider-facing stamps.
peer_class: FederatedPeerClass§peer_fingerprint: String§pairing_id: String§peer_name: String§remote_claim: Option<RemoteClaim>Implementations§
Source§impl FederatedAttributes
impl FederatedAttributes
Sourcepub fn same_identity(&self, other: &Self) -> bool
pub fn same_identity(&self, other: &Self) -> bool
Compare the facts fixed for an epoch, ignoring only the remote claim’s
display names. Every other field counts, including any added later;
peer_name is a fixed pairing-roster fact, not a display name here.
pub fn new( peer_class: FederatedPeerClass, peer_fingerprint: String, pairing_id: String, peer_name: String, ) -> Self
pub fn with_remote_claim(self, claim: Option<RemoteClaim>) -> Self
Trait Implementations§
Source§impl Clone for FederatedAttributes
impl Clone for FederatedAttributes
Source§impl Debug for FederatedAttributes
impl Debug for FederatedAttributes
Source§impl<'de> Deserialize<'de> for FederatedAttributes
impl<'de> Deserialize<'de> for FederatedAttributes
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 FederatedAttributes
Source§impl PartialEq for FederatedAttributes
impl PartialEq for FederatedAttributes
Source§impl Serialize for FederatedAttributes
impl Serialize for FederatedAttributes
impl StructuralPartialEq for FederatedAttributes
Auto Trait Implementations§
impl Forget for FederatedAttributes
impl Freeze for FederatedAttributes
impl Move for FederatedAttributes
impl RefUnwindSafe for FederatedAttributes
impl Send for FederatedAttributes
impl Sync for FederatedAttributes
impl Unpin for FederatedAttributes
impl UnsafeUnpin for FederatedAttributes
impl UnwindSafe for FederatedAttributes
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