pub struct Ctx {Show 18 fields
pub provider: String,
pub host: String,
pub url: String,
pub user: String,
pub email: String,
pub id: String,
pub key_id: String,
pub project: String,
pub secret_type: String,
pub family: String,
pub created: String,
pub now: String,
pub counter: u64,
pub vars: BTreeMap<String, String>,
pub lists: BTreeMap<String, Vec<String>>,
pub private_lists: BTreeSet<String>,
pub typed: Option<String>,
pub avoid: Vec<String>,
}Expand description
What a recipe may read: the entry’s public facts, the person’s facts and lists, and the date.
Fields§
§provider: String§host: String§url: String§user: String§email: String§id: String§key_id: String§project: String§secret_type: String§family: String§created: StringYYYY-MM-DD of creation; empty means “today”.
now: StringYYYY-MM-DD of today, passed in so nothing reads the clock here.
counter: u64§vars: BTreeMap<String, String>§lists: BTreeMap<String, Vec<String>>Your own lists; a name here wins over the built-in list of that name.
private_lists: BTreeSet<String>Lists whose words are private (they hide which list and which words).
typed: Option<String>§avoid: Vec<String>Values the result must never equal (current and past values of the entry).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ctx
impl RefUnwindSafe for Ctx
impl Send for Ctx
impl Sync for Ctx
impl Unpin for Ctx
impl UnsafeUnpin for Ctx
impl UnwindSafe for Ctx
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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