pub struct Relation { /* private fields */ }
Implementations§
Source§impl Relation
impl Relation
pub fn new( id: i64, version: i32, timestamp: i64, changeset: i64, uid: i32, user: String, visible: bool, members: Vec<Member>, tags: Vec<Tag>, ) -> Relation
pub fn id(&self) -> i64
pub fn version(&self) -> i32
pub fn timestamp(&self) -> i64
pub fn changeset(&self) -> i64
pub fn uid(&self) -> i32
pub fn user(&self) -> &String
pub fn take_user(&mut self) -> String
pub fn visible(&self) -> bool
pub fn members(&self) -> &Vec<Member>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnwindSafe for Relation
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