pub struct Referral {
pub target: Uri,
pub referred_by: Option<String>,
/* private fields */
}Expand description
What a REFER asked of us.
Fields§
§target: UriWhere the transferor wants the call sent.
referred_by: Option<String>Who asked, from Referred-By (RFC 3892). None if they did not say.
Worth surfacing rather than swallowing: a transfer is a request to call somebody on another party’s say-so, and who said so is the only basis for deciding whether to.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Referral
impl RefUnwindSafe for Referral
impl Send for Referral
impl Sync for Referral
impl Unpin for Referral
impl UnsafeUnpin for Referral
impl UnwindSafe for Referral
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more