pub struct PostingIdentity {
pub login: Option<String>,
pub display: String,
pub kind: IdentityKind,
pub source: TokenSource,
}Fields§
§login: Option<String>None while an App bot’s name is not known.
display: StringWhat to show: the login, or a description when it is unknown.
kind: IdentityKind§source: TokenSourceImplementations§
Source§impl PostingIdentity
impl PostingIdentity
pub fn new( login: Option<String>, kind: IdentityKind, source: TokenSource, ) -> Self
Whether actor is this identity: Some(true/false), or None when
the login is not known (the caller then falls back to what it
remembers having posted). Logins compare case-insensitively; an App
bot’s comments must also come from a bot, since a person may hold
the same name.
Trait Implementations§
Source§impl Clone for PostingIdentity
impl Clone for PostingIdentity
Source§impl Debug for PostingIdentity
impl Debug for PostingIdentity
Source§impl<'de> Deserialize<'de> for PostingIdentity
impl<'de> Deserialize<'de> for PostingIdentity
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 PostingIdentity
Source§impl PartialEq for PostingIdentity
impl PartialEq for PostingIdentity
Source§impl Serialize for PostingIdentity
impl Serialize for PostingIdentity
impl StructuralPartialEq for PostingIdentity
Auto Trait Implementations§
impl Forget for PostingIdentity
impl Freeze for PostingIdentity
impl Move for PostingIdentity
impl RefUnwindSafe for PostingIdentity
impl Send for PostingIdentitywhere
RawVecInner: Send,
impl Sync for PostingIdentitywhere
RawVecInner: Sync,
impl Unpin for PostingIdentity
impl UnsafeUnpin for PostingIdentity
impl UnwindSafe for PostingIdentitywhere
RawVecInner: UnwindSafe,
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.