pub struct RedeemPairing {
pub code: String,
pub addrs: Vec<String>,
pub relays: Vec<String>,
}Expand description
Pair with the server dialled by redeeming its federation invite.
Fields§
§code: StringThe invite’s code, as its link carries it; any case, dashes or spaces are taken.
addrs: Vec<String>Addresses the dialling server may be reached at, as ip:port, so
the other can dial it back (to say it unpaired). Hints: at most
MAX_HINTS are kept, and one that does not read is left out.
relays: Vec<String>URLs of relays it may be reached through; hints, as addrs.
Trait Implementations§
Source§impl Clone for RedeemPairing
impl Clone for RedeemPairing
Source§impl Debug for RedeemPairing
impl Debug for RedeemPairing
Source§impl<'de> Deserialize<'de> for RedeemPairing
impl<'de> Deserialize<'de> for RedeemPairing
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 RedeemPairing
Source§impl PartialEq for RedeemPairing
impl PartialEq for RedeemPairing
Source§impl Serialize for RedeemPairing
impl Serialize for RedeemPairing
impl StructuralPartialEq for RedeemPairing
Auto Trait Implementations§
impl Forget for RedeemPairing
impl Freeze for RedeemPairing
impl Move for RedeemPairing
impl RefUnwindSafe for RedeemPairing
impl Send for RedeemPairing
impl Sync for RedeemPairing
impl Unpin for RedeemPairing
impl UnsafeUnpin for RedeemPairing
impl UnwindSafe for RedeemPairing
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