Struct gedcomx::AttributionBuilder
source · pub struct AttributionBuilder(_);
Implementations§
source§impl AttributionBuilder
impl AttributionBuilder
sourcepub fn contributor(&mut self, agent: &Agent) -> Result<&mut Self>
pub fn contributor(&mut self, agent: &Agent) -> Result<&mut Self>
Errors
Will return GedcomxError::NoId
if a
conversion into ResourceReference
fails.
This happens if agent
has no id
set.
pub fn modified<I: Into<Timestamp>>(&mut self, timestamp: I) -> &mut Self
pub fn change_message<I: Into<String>>( &mut self, change_message: I ) -> &mut Self
sourcepub fn creator(&mut self, agent: &Agent) -> Result<&mut Self>
pub fn creator(&mut self, agent: &Agent) -> Result<&mut Self>
Errors
Will return GedcomxError::NoId
if a
conversion into ResourceReference
fails.
This happens if agent
has no id
set.
pub fn created<I: Into<Timestamp>>(&mut self, timestamp: I) -> &mut Self
pub fn build(&self) -> Attribution
Auto Trait Implementations§
impl RefUnwindSafe for AttributionBuilder
impl Send for AttributionBuilder
impl Sync for AttributionBuilder
impl Unpin for AttributionBuilder
impl UnwindSafe for AttributionBuilder
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