pub struct FeedRecord {
pub id: String,
pub user_id: Option<String>,
pub name: String,
pub kinds: String,
pub scope: String,
pub created_at: String,
pub last_fetched_at: Option<String>,
pub revoked_at: Option<String>,
}Fields§
§id: String§user_id: Option<String>§name: String§kinds: Stringcreated / expires / rotation, comma-joined.
scope: StringComma-joined opt-in flags. Only meaningful value today: account_names
— off by default, because an account name is often an email address and
the design’s rule is that a feed says nothing beyond names and dates
unless the person creating it asks for more.
created_at: String§last_fetched_at: Option<String>§revoked_at: Option<String>Implementations§
Source§impl FeedRecord
impl FeedRecord
pub fn is_revoked(&self) -> bool
pub fn include_account_names(&self) -> bool
pub fn kind_list(&self) -> Vec<String>
Trait Implementations§
Source§impl Clone for FeedRecord
impl Clone for FeedRecord
Source§fn clone(&self) -> FeedRecord
fn clone(&self) -> FeedRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FeedRecord
impl RefUnwindSafe for FeedRecord
impl Send for FeedRecord
impl Sync for FeedRecord
impl Unpin for FeedRecord
impl UnsafeUnpin for FeedRecord
impl UnwindSafe for FeedRecord
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